diff --git a/src/client/opamAdminCommand.ml b/src/client/opamAdminCommand.ml index 80423884ddf..40f2372e76e 100644 --- a/src/client/opamAdminCommand.ml +++ b/src/client/opamAdminCommand.ml @@ -878,8 +878,7 @@ let compare_versions_command cli = `S Manpage.s_options; ] in - let cmd global_options v0 v1 operator () = - OpamArg.apply_global_options cli global_options; + let cmd v0 v1 operator () = match operator with | None -> let result = OpamPackage.Version.compare v0 v1 in @@ -894,7 +893,7 @@ let compare_versions_command cli = else `False) in OpamArg.mk_command ~cli OpamArg.(cli_from cli2_4) command ~doc ~man - Term.(const cmd $ global_options cli $ version_arg 0 $ version_arg 1 $ operator) + Term.(const cmd $ version_arg 0 $ version_arg 1 $ operator) let pattern_list_arg = OpamArg.arg_list "PATTERNS"