From f9eda9ffceec63e0722735634d4ab54d32b853dd Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 16 Oct 2007 13:01:33 +0000 Subject: Edits to --help message and man page to improve readabiliity. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@585137 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/log/Options.cpp | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'cpp/src/qpid/log/Options.cpp') diff --git a/cpp/src/qpid/log/Options.cpp b/cpp/src/qpid/log/Options.cpp index b15630ebb2..592c10a48a 100644 --- a/cpp/src/qpid/log/Options.cpp +++ b/cpp/src/qpid/log/Options.cpp @@ -36,19 +36,21 @@ Options::Options(const std::string& name) : qpid::Options(name), for (int i = 1; i < LevelTraits::COUNT; ++i) levels << " " << LevelTraits::name(Level(i)); addOptions() - ("trace,t", optValue(trace), "Enable full debug tracing." ) + ("log.output", optValue(outputs, "FILE"), + "Send log output to FILE. " + "FILE can be a file name or one of the special values:\n" + "stderr, stdout, syslog") + ("trace,t", optValue(trace), "Enables all logging" ) ("log.enable", optValue(selectors, "RULE"), - ("You can specify this option mutliple times.\n" - "RULE is of the form 'LEVEL[+][:COMPONENT]'" - "Levels are: "+levels.str()+"\n" + ("Enables logging for selected levels and components. " + "RULE is in the form 'LEVEL[+][:COMPONENT]' " + "Levels are one of: \n\t "+levels.str()+"\n" "For example:\n" "\t'--log.enable warning+' " - "enables all warning, error and critical messages.\n" + "logs all warning, error and critical messages.\n" "\t'--log.enable debug:framing' " - "enables debug messages from the framing component.").c_str()) - ("log.output", optValue(outputs, "FILE"), - "File to receive log output, or one of these special values: " - "'stderr', 'stdout', 'syslog'.") + "logs debug messages from the framing component. " + "This option can be used multiple times").c_str()) ("log.time", optValue(time, "yes|no"), "Include time in log messages") ("log.level", optValue(level,"yes|no"), -- cgit v1.2.1