debian: Move openvswitch-dbg to "debug" section.
[openvswitch] / ovsdb / ovsdb-server.c
index d3a332e7353ece56719e815f3d14e70bcb15f040..3bd5bc50c723aff295d607ab4862f5778fad658a 100644 (file)
@@ -225,9 +225,11 @@ parse_options(int argc, char *argv[], char **file_namep,
     argc -= optind;
     argv += optind;
 
-    if (argc != 1) {
+    if (argc > 1) {
         ovs_fatal(0, "database file is only non-option argument; "
                 "use --help for usage");
+    } else if (argc < 1) {
+        ovs_fatal(0, "missing database file argument; use --help for usage");
     }
 
     *file_namep = argv[0];