aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/src/dialyzer_cl.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2011-03-09 17:47:57 +0100
committerMicael Karlberg <[email protected]>2011-03-09 17:47:57 +0100
commitd621b2cdd09adcc38bd6d482ae6c4f87e22cb1e8 (patch)
treecbe7d00d481e39c002408e65bb3ed9a0053ea781 /lib/dialyzer/src/dialyzer_cl.erl
parented30d7b09dbdc23be7facd602a07f5a373da565e (diff)
parent4668c233c8f850eb5c3e04e760b25d34b73aa497 (diff)
downloadotp-d621b2cdd09adcc38bd6d482ae6c4f87e22cb1e8.tar.gz
otp-d621b2cdd09adcc38bd6d482ae6c4f87e22cb1e8.tar.bz2
otp-d621b2cdd09adcc38bd6d482ae6c4f87e22cb1e8.zip
Merge branch 'dev' into bmk/snmp/agent/multi_engine_id_for_traps/OTP-9119
Diffstat (limited to 'lib/dialyzer/src/dialyzer_cl.erl')
-rw-r--r--lib/dialyzer/src/dialyzer_cl.erl6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/dialyzer/src/dialyzer_cl.erl b/lib/dialyzer/src/dialyzer_cl.erl
index 86f1ba4696..8d61216b7a 100644
--- a/lib/dialyzer/src/dialyzer_cl.erl
+++ b/lib/dialyzer/src/dialyzer_cl.erl
@@ -189,6 +189,12 @@ init_opts_for_remove(Opts) ->
plt_common(#options{init_plts = [InitPlt]} = Opts, RemoveFiles, AddFiles) ->
case check_plt(Opts, RemoveFiles, AddFiles) of
ok ->
+ case Opts#options.output_plt of
+ none -> ok;
+ OutPlt ->
+ {ok, Binary} = file:read_file(InitPlt),
+ file:write_file(OutPlt, Binary)
+ end,
case Opts#options.report_mode of
quiet -> ok;
_ -> io:put_chars(" yes\n")