krieselreihe / litr

Litr (Language Independent Task Runner) lets you configure and then run any tasks you want for any language.
MIT License
8 stars 0 forks source link

Validate command and parameter names #72

Open MartinHelmut opened 2 years ago

MartinHelmut commented 2 years ago

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