Skip to content

Commit

Permalink
option: reinsert deprecated option alias-of & no-autoinstall to displ…
Browse files Browse the repository at this point in the history
…ay deprecated message
  • Loading branch information
rjbou committed Dec 6, 2018
1 parent 426e0f2 commit fe1f88f
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/client/opamCommands.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2005,10 +2005,24 @@ let switch =
containing opam package definitions), install the dependencies of the \
project but not the project itself."
in
(* Deprecated options *)
let d_alias_of =
mk_opt ["A";"alias-of"]
"COMP"
"This option is deprecated."
Arg.(some string) None
in
let d_no_autoinstall =
mk_flag ["no-autoinstall"]
"This option is deprecated."
in
let switch
global_options build_options command print_short
no_switch packages empty descr full no_install deps_only repos
params =
d_alias_of d_no_autoinstall params =
OpamArg.deprecated_option d_alias_of None
"alias-of" (Some "opam switch <switch-name> <compiler>");
OpamArg.deprecated_option d_no_autoinstall false "no-autoinstall" None;
apply_global_options global_options;
apply_build_options build_options;
let packages =
Expand Down Expand Up @@ -2255,7 +2269,7 @@ let switch =
$print_short_flag
$no_switch
$packages $empty $descr $full $no_install $deps_only
$repos $params)),
$repos $d_alias_of $d_no_autoinstall $params)),
term_info "switch" ~doc ~man

(* PIN *)
Expand Down

0 comments on commit fe1f88f

Please sign in to comment.