diff options
author | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-02-27 13:49:17 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2017-02-27 04:50:22 -0500 |
commit | bb50c512e51901410762b99d857d53435a73c9c4 (patch) | |
tree | fa5132a9cf81372c6936b97501effbf8f7019563 /cli | |
parent | 23c424c01bc58c477de513b297cf3b822166a069 (diff) |
cli: add traditional options
Though we do not use '--' style for arguments, this patch add supports
for traditional options "--version, --help and --usage".
Change-Id: Ie8bcf05dd46cb045c46ff9aa4f3079f87f848730
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Diffstat (limited to 'cli')
-rw-r--r-- | cli/gluster-block.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/gluster-block.c b/cli/gluster-block.c index 304a116..b5549a0 100644 --- a/cli/gluster-block.c +++ b/cli/gluster-block.c @@ -462,10 +462,14 @@ glusterBlockParseArgs(int count, char **options) goto out; case GB_CLI_HELP: + case GB_CLI_HYPHEN_HELP: + case GB_CLI_USAGE: + case GB_CLI_HYPHEN_USAGE: glusterBlockHelp(); goto out; case GB_CLI_VERSION: + case GB_CLI_HYPHEN_VERSION: MSG("%s\n", argp_program_version); goto out; } |