projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18b9283
)
ovsdb-server: Improve error message when database file argument is missing.
author
Ben Pfaff
<blp@nicira.com>
Tue, 15 Dec 2009 21:10:16 +0000
(13:10 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Tue, 15 Dec 2009 21:11:57 +0000
(13:11 -0800)
ovsdb/ovsdb-server.c
patch
|
blob
|
history
diff --git
a/ovsdb/ovsdb-server.c
b/ovsdb/ovsdb-server.c
index d3a332e7353ece56719e815f3d14e70bcb15f040..3bd5bc50c723aff295d607ab4862f5778fad658a 100644
(file)
--- a/
ovsdb/ovsdb-server.c
+++ b/
ovsdb/ovsdb-server.c
@@
-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];