tweaks to '-h' output

This commit is contained in:
Trent Mick 2012-08-09 09:05:50 -07:00
parent 19bc3ceb43
commit 1de6c876d3
1 changed files with 10 additions and 6 deletions

View File

@ -136,6 +136,16 @@ function printHelp() {
util.puts(" -h, --help print this help info and exit"); util.puts(" -h, --help print this help info and exit");
util.puts(" --version print version of this command and exit"); util.puts(" --version print version of this command and exit");
util.puts(""); util.puts("");
util.puts(" -l, --level LEVEL");
util.puts(" Only show messages at or above the specified level.");
util.puts(" You can specify level *names* or numeric values.");
util.puts(" (See 'Log Levels' below.)");
util.puts(" -c, --condition CONDITION");
util.puts(" Run each log message through the condition");
util.puts(" and only show those that resolve to a truish value.");
util.puts(" E.g. `-c 'pid == 123'`, `-c 'level == 50'`. You must");
util.puts(" use the numeric values for filtering by level.");
util.puts("");
util.puts(" --color Colorize output. Defaults to try if output"); util.puts(" --color Colorize output. Defaults to try if output");
util.puts(" stream is a TTY."); util.puts(" stream is a TTY.");
util.puts(" --no-color Force no coloring (e.g. terminal doesn't support it)"); util.puts(" --no-color Force no coloring (e.g. terminal doesn't support it)");
@ -146,12 +156,6 @@ function printHelp() {
util.puts(" json-N: JSON output, N-space indent, e.g. 'json-4'"); util.puts(" json-N: JSON output, N-space indent, e.g. 'json-4'");
util.puts(" inspect: node.js `util.inspect` output"); util.puts(" inspect: node.js `util.inspect` output");
util.puts(" -j shortcut for `-o json`"); util.puts(" -j shortcut for `-o json`");
util.puts(" -l, --level LEVEL");
util.puts(" Only show messages at or above the specified level.");
util.puts(" (See 'Log Levels' below.)");
util.puts(" -c, --condition CONDITION");
util.puts(" Run each log message through the condition");
util.puts(" and only show those that resolve to a truish value.");
util.puts(""); util.puts("");
util.puts("Log Levels:"); util.puts("Log Levels:");
util.puts(" Either numeric values or their associated strings are valid for the"); util.puts(" Either numeric values or their associated strings are valid for the");