-
Improvement
-
Resolution: Fixed
-
Minor
-
None
It would be good to use long flags like how most other CLI tools use them
See:
https://blog.heroku.com/cli-flags-get-started-with-oclif
https://www.mankier.com/1/kubectl-create
i.e.
--
instead of
-
Usage could look something like:
jenkins-plugin-manager --file plugins.txt --jenkins-war jenkins.war --plugin blah --plugin plugin2 --plugin-directory plugins/
A couple of examples of how short flags could look:
jenkins-plugin-manager -f new-plugins.txt
jenkins-plugin-manager -p slack
It is considered best practice for shell-based commands to use a single dash followed by a single character, and two dashes followed by a word. One of the reasons being is that using multiple characters after a single dash can be confused for a value after the single character. I.e. `-f file` and `-ffile` can mean the same, so `-file` can be interpreted as `-f ile`.