aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/src/dialyzer_options.erl
diff options
context:
space:
mode:
authorNiclas Axelsson <[email protected]>2011-03-04 16:26:31 +0100
committerNiclas Axelsson <[email protected]>2011-03-04 16:27:18 +0100
commit0f52060f8514ddd3e58004f4231da581a93209c6 (patch)
treebe3072070ecedbd662d7d8b31c12ba644a452135 /lib/dialyzer/src/dialyzer_options.erl
parent03ee5e80434aa2c86196832a8b9eaf78fe2e8f5d (diff)
parentb4c3711c6daa2f171f56b984235969e223ce8f9c (diff)
downloadotp-0f52060f8514ddd3e58004f4231da581a93209c6.tar.gz
otp-0f52060f8514ddd3e58004f4231da581a93209c6.tar.bz2
otp-0f52060f8514ddd3e58004f4231da581a93209c6.zip
Merge branch 'ks/dialyzer-fullpath' into dev
* ks/dialyzer-fullpath: Add a --fullpath option to Dialyzer OTP-9098
Diffstat (limited to 'lib/dialyzer/src/dialyzer_options.erl')
-rw-r--r--lib/dialyzer/src/dialyzer_options.erl12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/dialyzer/src/dialyzer_options.erl b/lib/dialyzer/src/dialyzer_options.erl
index 2c0afa6e2b..b5cefd16ca 100644
--- a/lib/dialyzer/src/dialyzer_options.erl
+++ b/lib/dialyzer/src/dialyzer_options.erl
@@ -2,7 +2,7 @@
%%-----------------------------------------------------------------------
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2006-2010. All Rights Reserved.
+%% Copyright Ericsson AB 2006-2011. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -169,6 +169,9 @@ build_options([{OptionName, Value} = Term|Rest], Options) ->
output_format ->
assert_output_format(Value),
build_options(Rest, Options#options{output_format = Value});
+ filename_opt ->
+ assert_filename_opt(Value),
+ build_options(Rest, Options#options{filename_opt = Value});
output_plt ->
assert_filename(Value),
build_options(Rest, Options#options{output_plt = Value});
@@ -218,6 +221,13 @@ assert_output_format(formatted) ->
assert_output_format(Term) ->
bad_option("Illegal value for output_format", Term).
+assert_filename_opt(basename) ->
+ ok;
+assert_filename_opt(fullpath) ->
+ ok;
+assert_filename_opt(Term) ->
+ bad_option("Illegal value for filename_opt", Term).
+
assert_plt_op(#options{analysis_type = OldVal},
#options{analysis_type = NewVal}) ->
case is_plt_mode(OldVal) andalso is_plt_mode(NewVal) of