aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/compile/snmpc.src
diff options
context:
space:
mode:
authorTuncer Ayaz <[email protected]>2011-10-05 16:47:21 +0200
committerTuncer Ayaz <[email protected]>2011-10-18 17:34:10 +0200
commit156b2ed537d26205fb152cea16347cd8b683e851 (patch)
treeb767a5dde92ec9f113eab1a043828fa60edd79bd /lib/snmp/src/compile/snmpc.src
parent02ec67177b2f5d2de371362e5bb3c9b9771fb0b8 (diff)
downloadotp-156b2ed537d26205fb152cea16347cd8b683e851.tar.gz
otp-156b2ed537d26205fb152cea16347cd8b683e851.tar.bz2
otp-156b2ed537d26205fb152cea16347cd8b683e851.zip
snmpc: fix --warnings/--W option parsing
Diffstat (limited to 'lib/snmp/src/compile/snmpc.src')
-rw-r--r--lib/snmp/src/compile/snmpc.src2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/snmp/src/compile/snmpc.src b/lib/snmp/src/compile/snmpc.src
index f993335b89..3d8015f0cd 100644
--- a/lib/snmp/src/compile/snmpc.src
+++ b/lib/snmp/src/compile/snmpc.src
@@ -234,7 +234,7 @@ 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(["--W"|Args], State) ->
process_args(Args, State#state{warnings = true});
process_args(["--warnings"|Args], State) ->
process_args(Args, State#state{warnings = true});