From: Ben Pfaff Date: Mon, 6 Apr 2009 22:36:14 +0000 (-0700) Subject: cfg-mod: Complain about non-option arguments, since we don't support any. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19db8f6932bb27ebb30fc8e40315f317688cb7a4;p=openvswitch cfg-mod: Complain about non-option arguments, since we don't support any. --- diff --git a/utilities/cfg-mod.c b/utilities/cfg-mod.c index 67a1464b..f7d0b634 100644 --- a/utilities/cfg-mod.c +++ b/utilities/cfg-mod.c @@ -154,6 +154,11 @@ int main(int argc, char *argv[]) } free(short_options); + if (optind != argc) { + ofp_fatal(0, "non-option arguments not accepted " + "(use --help for help)"); + } + if (modified) { cfg_write(); }