From 19db8f6932bb27ebb30fc8e40315f317688cb7a4 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 6 Apr 2009 15:36:14 -0700 Subject: [PATCH] cfg-mod: Complain about non-option arguments, since we don't support any. --- utilities/cfg-mod.c | 5 +++++ 1 file changed, 5 insertions(+) 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(); } -- 2.30.2