Skip to content

Commit

Permalink
fixup! no need to have global options for this command
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbou committed Oct 25, 2024
1 parent 0fe1648 commit dd8302e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/client/opamAdminCommand.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit dd8302e

Please sign in to comment.