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

Error message for missing required parameter on command execution #35

Closed MartinHelmut closed 3 years ago

MartinHelmut commented 3 years ago

Currently running a command without a required parameter will print a wrong error (from the script parser). This should be catched with a proper user error e.g. "Running command XY requires the following parameter(s): ...".

Given the following configuration file:

[commands]
test = "cd build/%{target}/src/tests && ctest && cd ../../../.."

[params]
target = "Define the application build target."

The following calls need to be handled:

litr test
litr test --target