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/snmp/src/compile | |
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/snmp/src/compile')
-rw-r--r-- | lib/snmp/src/compile/snmpc.src | 4 |
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" |