From f83078e74b2fdad5deb0a26180fefb43ee7afcc2 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 6 Apr 2009 15:34:35 -0700 Subject: [PATCH] cfg-mod: Make --help work. --- utilities/cfg-mod.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utilities/cfg-mod.c b/utilities/cfg-mod.c index 79662ab5..67a1464b 100644 --- a/utilities/cfg-mod.c +++ b/utilities/cfg-mod.c @@ -93,6 +93,7 @@ int main(int argc, char *argv[]) {"del-entry", required_argument, 0, 'd'}, {"del-section", required_argument, 0, 'D'}, {"query", required_argument, 0, 'q'}, + {"help", no_argument, 0, 'h'}, {0, 0, 0, 0}, }; char *short_options; @@ -111,7 +112,7 @@ int main(int argc, char *argv[]) break; } - if (!strchr("F", option) && config_set == false) { + if (!strchr("Fh?", option) && config_set == false) { ofp_fatal(0, "no config file specified (use --help for help)"); } -- 2.30.2