aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/compile/snmpc.src
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2011-11-16 17:11:01 +0100
committerMicael Karlberg <[email protected]>2011-11-16 17:11:01 +0100
commit83c632bcdf76f483e69c635af1a28b10eae4bdbd (patch)
treee880524592978c8fbc93718d0151517344d41024 /lib/snmp/src/compile/snmpc.src
parentde3506311f61044799eceeda5c378ab7983ecc16 (diff)
parent86395c2392912e0e60788dd592031cc47c3f707a (diff)
downloadotp-83c632bcdf76f483e69c635af1a28b10eae4bdbd.tar.gz
otp-83c632bcdf76f483e69c635af1a28b10eae4bdbd.tar.bz2
otp-83c632bcdf76f483e69c635af1a28b10eae4bdbd.zip
[compiler] Fix the --warnings/--W option parsing in the snmpc wrapper script.
The short warning option was incorrectly '--w', instead of as documented '--W'. This has now been corrected. Tuncer Ayaz OTP-9718 Merge branch 'bmk/snmp/compiler/fix_short_warning_option/OTP-9718' into bmk/snmp/r15_integration
Diffstat (limited to 'lib/snmp/src/compile/snmpc.src')
-rw-r--r--lib/snmp/src/compile/snmpc.src4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/snmp/src/compile/snmpc.src b/lib/snmp/src/compile/snmpc.src
index 8760ce14b5..868e0929b4 100644
--- a/lib/snmp/src/compile/snmpc.src
+++ b/lib/snmp/src/compile/snmpc.src
@@ -74,7 +74,7 @@
%% --rrnac
%% --version
%% --verbosity V
-%% --warnings
+%% --warnings | --W
%% --Werror | --wae | --warnings_as_errors
main(Args) when is_list(Args) ->
case (catch process_args(Args)) of
@@ -237,7 +237,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});