Details

    • Similar Issues:

      Description

      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 

        Attachments

          Activity

          Hide
          jnz_topdanmark Jon Brohauge added a comment - - edited

          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`.

           

          Show
          jnz_topdanmark Jon Brohauge added a comment - - edited 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`.  
          Show
          stopalopa Natasha Stopa added a comment - Fixed and merged in with  https://github.com/jenkinsci/plugin-installation-manager-tool/pull/24

            People

            • Assignee:
              stopalopa Natasha Stopa
              Reporter:
              timja Tim Jacomb
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: