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

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

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Lustre 2.12.0, Lustre 2.13.0
    • Fix Version/s: None
    • Labels:
    • Rank (Obsolete):
      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

            • Assignee:
              wc-triage WC Triage
              Reporter:
              jamesanunez James Nunez
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: