diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2013-04-18 17:18:11 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2013-04-18 17:18:11 +0000 |
| commit | 2f3d7ca0600c8685fceb88b5636250145e019096 (patch) | |
| tree | b66f30ff3123e7b73ff3033724b39e939e2d761d /qpid/cpp/src/posix | |
| parent | 060f9b4d47da0c5f60dffdc8532332ff92f96bb5 (diff) | |
| download | qpid-python-2f3d7ca0600c8685fceb88b5636250145e019096.tar.gz | |
QPID-3689: Fix previous change of command line option handling
Now introduced new command line option type that is a pure command
line switch which can take no boolean argument.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1469466 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/posix')
| -rw-r--r-- | qpid/cpp/src/posix/QpiddBroker.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qpid/cpp/src/posix/QpiddBroker.cpp b/qpid/cpp/src/posix/QpiddBroker.cpp index a681a6d18d..dc6766d34f 100644 --- a/qpid/cpp/src/posix/QpiddBroker.cpp +++ b/qpid/cpp/src/posix/QpiddBroker.cpp @@ -75,12 +75,12 @@ struct DaemonOptions : public qpid::Options { piddir += "/.qpidd"; addOptions() - ("daemon,d", optValue(daemon), "Run as a daemon. Logs to syslog by default in this mode.") + ("daemon,d", pure_switch(daemon), "Run as a daemon. Logs to syslog by default in this mode.") ("transport", optValue(transport, "TRANSPORT"), "The transport for which to return the port") ("pid-dir", optValue(piddir, "DIR"), "Directory where port-specific PID file is stored") ("wait,w", optValue(wait, "SECONDS"), "Sets the maximum wait time to initialize the daemon. If the daemon fails to initialize, prints an error and returns 1") - ("check,c", optValue(check), "Prints the daemon's process ID to stdout and returns 0 if the daemon is running, otherwise returns 1") - ("quit,q", optValue(quit), "Tells the daemon to shut down"); + ("check,c", pure_switch(check), "Prints the daemon's process ID to stdout and returns 0 if the daemon is running, otherwise returns 1") + ("quit,q", pure_switch(quit), "Tells the daemon to shut down"); } }; |
