projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
629a2a2
)
cfg-mod: Make --help work.
author
Ben Pfaff
<blp@nicira.com>
Mon, 6 Apr 2009 22:34:35 +0000
(15:34 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Mon, 6 Apr 2009 23:34:32 +0000
(16:34 -0700)
utilities/cfg-mod.c
patch
|
blob
|
history
diff --git
a/utilities/cfg-mod.c
b/utilities/cfg-mod.c
index 79662ab514ebb912aeb62915e366da6062792640..67a1464bda81c7c2eb952db55826569a9e9829fe 100644
(file)
--- 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("F
h?
", option) && config_set == false) {
ofp_fatal(0, "no config file specified (use --help for help)");
}