From bb50c512e51901410762b99d857d53435a73c9c4 Mon Sep 17 00:00:00 2001 From: Prasanna Kumar Kalever Date: Mon, 27 Feb 2017 13:49:17 +0530 Subject: 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 --- cli/gluster-block.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli') 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; } -- cgit