From 58ff69c1d34be6a630c5e6b373c08182a42d024b Mon Sep 17 00:00:00 2001 From: Andrew Bettison Date: Tue, 9 Apr 2013 17:26:38 +0930 Subject: [PATCH] Fix #59: "-h" and "--help" synonyms for "help" --- commandline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commandline.c b/commandline.c index 11d81f0f..378e5162 100644 --- a/commandline.c +++ b/commandline.c @@ -2364,7 +2364,7 @@ int app_network_scan(const struct cli_parsed *parsed, void *context) */ #define KEYRING_PIN_OPTIONS ,"[--keyring-pin=]","[--entry-pin=]..." struct cli_schema command_line_options[]={ - {commandline_usage,{"help","...",NULL},CLIFLAG_PERMISSIVE_CONFIG, + {commandline_usage,{"help|-h|--help","...",NULL},CLIFLAG_PERMISSIVE_CONFIG, "Display command usage."}, {app_echo,{"echo","[-e]","[--]","...",NULL},CLIFLAG_PERMISSIVE_CONFIG, "Output the supplied string."},