From: Ben Pfaff Date: Mon, 6 Apr 2009 22:34:35 +0000 (-0700) Subject: cfg-mod: Make --help work. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f83078e74b2fdad5deb0a26180fefb43ee7afcc2;p=openvswitch cfg-mod: Make --help work. --- 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)"); }