Skip to content

Commit fadbce8

Browse files
committed
describe: add --lang back into dune-describe_opam_files for backcompat
Signed-off-by: Ali Caglayan <[email protected]>
1 parent fbdf325 commit fadbce8

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

bin/describe/describe_opam_files.ml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@ open Stdune
33

44
let term =
55
let+ common = Common.term
6-
and+ format = Describe_format.arg in
6+
and+ format = Describe_format.arg
7+
and+ _ =
8+
Arg.(
9+
value
10+
& opt (some string) None
11+
& info [ "lang" ] ~docv:"VERSION"
12+
~doc:
13+
"This argument has no effect and is deprecated. It exists solely \
14+
for backwards compatibility.")
15+
in
716
let config = Common.init common in
817
Scheduler.go ~common ~config @@ fun () ->
918
Build_system.run_exn @@ fun () ->

test/blackbox-tests/test-cases/describe/describe.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ Test errors
13431343
opam file listing
13441344
-----------------
13451345

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

0 commit comments

Comments
 (0)