Skip to content

Commit

Permalink
describe: add --lang back into dune-describe_opam_files for backcompat
Browse files Browse the repository at this point in the history
Signed-off-by: Ali Caglayan <alizter@gmail.com>
  • Loading branch information
Alizter committed Jun 9, 2023
1 parent fbdf325 commit fadbce8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion bin/describe/describe_opam_files.ml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@ open Stdune

let term =
let+ common = Common.term
and+ format = Describe_format.arg in
and+ format = Describe_format.arg
and+ _ =
Arg.(
value
& opt (some string) None
& info [ "lang" ] ~docv:"VERSION"
~doc:
"This argument has no effect and is deprecated. It exists solely \
for backwards compatibility.")
in
let config = Common.init common in
Scheduler.go ~common ~config @@ fun () ->
Build_system.run_exn @@ fun () ->
Expand Down
2 changes: 1 addition & 1 deletion test/blackbox-tests/test-cases/describe/describe.t
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,7 @@ Test errors
opam file listing
-----------------

$ dune describe opam-files | dune_cmd expand_lines
$ dune describe opam-files --lang 0.1 | dune_cmd expand_lines
((foo.opam
"# This file is generated by dune, edit dune-project instead
opam-version: \"2.0\"
Expand Down

0 comments on commit fadbce8

Please sign in to comment.