Whamcloud - gitweb
LU-930 utils: add --help option to lfs sub-commands 59/34659/21
authorAndreas Dilger <adilger@whamcloud.com>
Tue, 21 Jan 2020 10:29:36 +0000 (03:29 -0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 21 Jun 2021 22:16:22 +0000 (22:16 +0000)
commit905b7685c1cc32c25406c70201748d36eef05736
tree4147c89e06a60d62416f5391c6851bf576144e2c
parentbaba1fd07a977a62295482919e9218f877c0535a
LU-930 utils: add --help option to lfs sub-commands

Add the "--help" and "-h" options to lfs sub-commands, and
print out an error message if an invalid argument is given.
Otherwise, it is possible to get a help message but have no
idea why the command is failing (e.g. typo in argument name).

Format the usage messages consistently, using {} to indicate a
choice between multiple required parameters, putting arguments
in [] for optional parameters, and using capitalized arguments.

Update respective man pages to list "--help|-h" option.

Remove the old SETSTRIPE and GETSTRIPE checks from spelling.txt
to avoid spurious checkpatch warnings.

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ic583c8161d1d5380e353f43a8613dd86c93ebbe5
Reviewed-on: https://review.whamcloud.com/34659
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Olaf Faaland-LLNL <faaland1@llnl.gov>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
contrib/scripts/spelling.txt
lustre/doc/lfs-find.1
lustre/doc/lfs-flushctx.1
lustre/doc/lfs-getdirstripe.1
lustre/doc/lfs-getname.1
lustre/doc/lfs-getstripe.1
lustre/doc/lfs-migrate.1
lustre/doc/lfs-setdirstripe.1
lustre/doc/lfs-setquota.1
lustre/doc/lfs_migrate.1
lustre/utils/lfs.c