Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-11839

iokit-gather-stats help message woks with ‘-h’ or ‘--help’ not ‘-help’

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.15.0
    • Lustre 2.12.0, Lustre 2.13.0
    • 9223372036854775807

    Description

      Running iokit-gather-stats with no flags results in

      #  /usr/bin/iokit-gather-stats
      Usage: iokit-gather-stats [-help] config_file [start|stop|cleanup] <log_name>
      

      So, to get help on the command, we should use the ‘-help’ flag

      #  /usr/bin/iokit-gather-stats -help
      getopt: invalid option -- 'e'
      getopt: invalid option -- 'l'
      getopt: invalid option -- 'p'
      Usage: iokit-gather-stats [-help] config_file [start|stop|cleanup] <log_name>
      

      Well, that didn’t help.

      Looking at the code, we should really use ‘h’ or ‘-help’. Thus, we should modify the Usage statement above.

      Attachments

        Activity

          People

            arshad512 Arshad Hussain
            jamesanunez James Nunez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: