I am writing a simple groovy script for which I want a command line as simple as-
./someTask.groovy task-profile
Also, the script should have a --help or -h option which specifies all the different values task-profile can take.
task-profile can take the following values-
task-1task-2task-3
And the --help option should tell the users about all available task-profile values and also how to use them.
I searched a lot but only found examples that had options (eg -a, -b, -c, etc.)
How to write a script that has no option, but only positional parameters, I can hardcode it using switch statements, but I want to learn to use CliBuilder. Any help will be appreciated.