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

Validate command and parameter names #72

Open
MartinHelmut opened this issue Apr 1, 2022 · 0 comments
Open

Validate command and parameter names #72

MartinHelmut opened this issue Apr 1, 2022 · 0 comments
Labels
enhancement Improve on an existing feature.
Milestone

Comments

@MartinHelmut
Copy link
Member

MartinHelmut commented Apr 1, 2022

Description

Currently you can almost write anything for command and parameter names inside the litr.toml. Those will first be validated on execution and some issues never (e.g. a parameter name with starting hyphen like ---progress are currently not validated). To ensure valid names and help the user early there should be a validation on reading the config file with feedback what is wrong.

One idea also could be to show the user a potential solution/valid name.

Also, command and parameter properties are only validated on execution, but should also be on calling litr --help.

DoD

@MartinHelmut MartinHelmut added the enhancement Improve on an existing feature. label Apr 1, 2022
@MartinHelmut MartinHelmut added this to the Version 1 milestone Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve on an existing feature.
Projects
None yet
Development

No branches or pull requests

1 participant