Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] Can we get lists of items separated by commas to ignore spaces? #5142

Open
cmbarton opened this issue Feb 19, 2025 · 0 comments
Open
Labels
enhancement New feature or request general GUI wxGUI related Python Related code is in Python

Comments

@cmbarton
Copy link
Contributor

Is your feature request related to a problem? Please describe.
A number of GRASS modules allow you to enter 2 or more items to an argument as a comma-separated list--e.g., x,y coordinates, lists of maps in for a PCA or series, etc. Often when this information is pasted from the clipboard or other sources, there may be one or more spaces between an item and a comma. This always causes the command to fail with a sometimes uninterpretable error.

Describe the solution you'd like
It is pretty easy in Python to ignore whitespace in comma-separated lists. Can't we just parse comma-separated lists that go into arguments to ignore that whitespace? A poorly written argument with a comma followed by nothing would of course generate an error one way or another--as it should. But a complete list of comma-separated items would not even if there was some whitespace between items.

@cmbarton cmbarton added enhancement New feature or request general GUI wxGUI related Python Related code is in Python labels Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request general GUI wxGUI related Python Related code is in Python
Projects
None yet
Development

No branches or pull requests

1 participant