aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/compile
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2011-08-02 13:56:49 +0200
committerMicael Karlberg <[email protected]>2011-08-02 13:56:49 +0200
commitaca631f40850fabbbc9c0d26b04c550d62b7f09e (patch)
tree172b30f6fc050654ece16975783a82a821de1f45 /lib/snmp/src/compile
parentb00b2d56e5b7e2d59aebb8b020d8c30064050413 (diff)
downloadotp-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/snmp/src/compile')
-rw-r--r--lib/snmp/src/compile/snmpc.src4
1 files changed, 3 insertions, 1 deletions
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"