summaryrefslogtreecommitdiff
path: root/utilities/ovs-vsctl.c
diff options
context:
space:
mode:
authorJustin Pettit <jpettit@nicira.com>2010-01-04 19:15:22 -0800
committerJustin Pettit <jpettit@nicira.com>2010-01-05 00:10:17 -0800
commite26b5a068c2b43c19d24deb8bb84499b112069fb (patch)
tree6d81b792bb5e6af18843d4eaf9dd2c00f0ff8b35 /utilities/ovs-vsctl.c
parent8f3a29be917cad5bcb389ab510d918ae21fea0c5 (diff)
downloadopenvswitch-e26b5a068c2b43c19d24deb8bb84499b112069fb.tar.gz
ovs-vsctl: Add support for extended vlog options
The man page states that ovs-vsctl supports extended vlog options (e.g., --log-file), but the executable did not. This commit adds it.
Diffstat (limited to 'utilities/ovs-vsctl.c')
-rw-r--r--utilities/ovs-vsctl.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/utilities/ovs-vsctl.c b/utilities/ovs-vsctl.c
index a63970b51..3a73a2321 100644
--- a/utilities/ovs-vsctl.c
+++ b/utilities/ovs-vsctl.c
@@ -153,7 +153,8 @@ parse_options(int argc, char *argv[])
OPT_ONELINE,
OPT_NO_SYSLOG,
OPT_NO_WAIT,
- OPT_DRY_RUN
+ OPT_DRY_RUN,
+ VLOG_OPTION_ENUMS
};
static struct option long_options[] = {
{"db", required_argument, 0, OPT_DB},
@@ -162,9 +163,9 @@ parse_options(int argc, char *argv[])
{"dry-run", no_argument, 0, OPT_DRY_RUN},
{"oneline", no_argument, 0, OPT_ONELINE},
{"timeout", required_argument, 0, 't'},
- {"verbose", optional_argument, 0, 'v'},
{"help", no_argument, 0, 'h'},
{"version", no_argument, 0, 'V'},
+ VLOG_LONG_OPTIONS,
{0, 0, 0, 0},
};
@@ -214,9 +215,7 @@ parse_options(int argc, char *argv[])
}
break;
- case 'v':
- vlog_set_verbosity(optarg);
- break;
+ VLOG_OPTION_HANDLERS
case '?':
exit(EXIT_FAILURE);