From 63ec13f022ae99c1664fbdbc9e6623903ba843af Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Wed, 15 Sep 2010 08:11:15 +0000 Subject: cli: add a simplistic option parser, convert "mode script" to "--mode=script" Signed-off-by: Csaba Henk Signed-off-by: Vijay Bellur BUG: 1570 (geosync related changes) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1570 --- cli/src/cli.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cli/src/cli.h') diff --git a/cli/src/cli.h b/cli/src/cli.h index eaa638c29d6..62aa02079da 100644 --- a/cli/src/cli.h +++ b/cli/src/cli.h @@ -39,9 +39,8 @@ enum argp_option_keys { ARGP_PORT_KEY = 'p', }; -enum gluster_mode { - GLUSTER_MODE_SCRIPT = 1 -}; +#define GLUSTER_MODE_SCRIPT (1 << 0) + struct cli_state; struct cli_cmd_word; struct cli_cmd_tree; -- cgit