diff options
author | Micael Karlberg <[email protected]> | 2011-08-02 13:56:49 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2011-08-02 13:56:49 +0200 |
commit | aca631f40850fabbbc9c0d26b04c550d62b7f09e (patch) | |
tree | 172b30f6fc050654ece16975783a82a821de1f45 /lib | |
parent | b00b2d56e5b7e2d59aebb8b020d8c30064050413 (diff) | |
download | otp-aca631f40850fabbbc9c0d26b04c550d62b7f09e.tar.gz otp-aca631f40850fabbbc9c0d26b04c550d62b7f09e.tar.bz2 otp-aca631f40850fabbbc9c0d26b04c550d62b7f09e.zip |
Also added handling option "--W" in the snmpc(command),
for completion.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/snmp/doc/src/snmpc_cmd.xml | 3 | ||||
-rw-r--r-- | lib/snmp/src/compile/snmpc.src | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/snmp/doc/src/snmpc_cmd.xml b/lib/snmp/doc/src/snmpc_cmd.xml index dda8f017dc..971f8a3cff 100644 --- a/lib/snmp/doc/src/snmpc_cmd.xml +++ b/lib/snmp/doc/src/snmpc_cmd.xml @@ -79,10 +79,11 @@ <p>Print debug info. </p> <p><c>verbosity</c> = <c>trace</c> | <c>debug</c> | <c>log</c> | <c>info</c> | <c>silence</c></p> <p>Defaults to <c>silence</c>.</p> + <marker id="option_w"></marker> <marker id="option_warnings"></marker> </item> - <tag>--warnings</tag> + <tag>--warnings | --W</tag> <item> <p>Print warning messages. </p> <marker id="option_wae"></marker> diff --git a/lib/snmp/src/compile/snmpc.src b/lib/snmp/src/compile/snmpc.src index b069dbe8fa..ee65129437 100644 --- a/lib/snmp/src/compile/snmpc.src +++ b/lib/snmp/src/compile/snmpc.src @@ -234,6 +234,8 @@ process_args(["--verbosity", Verbosity0|Args], #state{verbosity = V} = State) process_args(["--verbosity"|_Args], #state{verbosity = V}) when (V =/= undefined) -> e(lists:flatten(io_lib:format("Verbosity already set to ~w", [V]))); +process_args(["--w"|Args], State) -> + process_args(Args, State#state{warnings = true}); process_args(["--warnings"|Args], State) -> process_args(Args, State#state{warnings = true}); process_args(["--o", Dir|Args], State) -> @@ -334,7 +336,7 @@ usage() -> "~n --verbosity <verbosity> - Print debug info." "~n verbosity = trace | debug | log | info | silence" "~n Defaults to silence." - "~n --warnings - Print warning messages." + "~n --warnings | --W - Print warning messages." "~n --o <output dir> - The output dir." "~n Defaults to current working dir." "~n --i <include dir> - Add this dir to the list of dirs that will be" |