Whamcloud - gitweb
LU-11839 iokit: Fix help message 14/43114/2
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Thu, 25 Mar 2021 10:50:59 +0000 (16:20 +0530)
committerOleg Drokin <green@whamcloud.com>
Tue, 8 Jun 2021 21:58:19 +0000 (21:58 +0000)
This patch fixes help message of iokit-gather-stats
to properly add "--help" instead of "-help". Two
hyphen/dashes are expected by getopts.

Test-Parameters: trivial
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: I64270598fc19377571b68066d617b50fcb48cc12
Reviewed-on: https://review.whamcloud.com/43114
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Nunez <jnunez@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre-iokit/stats-collect/iokit-gather-stats

index 336d249..9dc1399 100755 (executable)
@@ -31,7 +31,7 @@ debug () {
 }
 
 usage() {
-       printf $"Usage: iokit-gather-stats [-help] config_file [start|stop|cleanup] <log_name>\n"
+       printf $"Usage: iokit-gather-stats [--help|-h] config_file [start|stop|cleanup] <log_name>\n"
        if [ x$1 = x-h ]; then
                 printf $"
 The distribution script will run on a single node.  It is parameterised