File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
test/bin/gen_rule_helpers Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1717open Cmdliner
1818
1919let cmds = [ Test. cmd; Pp. cmd; Deps. cmd; Dune_gen. cmd ]
20+ let main (`Setup () ) = `Help (`Pager , None )
2021
21- let main =
22+ let info =
2223 let doc = " Execute markdown files." in
2324 let man = [] in
2425 Cmd. info " ocaml-mdx" ~version: " %%VERSION%%" ~doc ~man
2526
26- let group = Cmd. group main cmds
27+ let default = Term. (ret (const main $ Cli. setup))
28+ let group = Cmd. group ~default info cmds
2729let () = Stdlib. exit @@ Cmd. eval' group
Original file line number Diff line number Diff line change @@ -157,5 +157,6 @@ let run generator =
157157 let man = [] in
158158 Cmd. info " gen_dune_rules" ~doc ~man
159159 in
160- let group = Cmd. group info cmds in
160+ let default = Term. (ret (const (`Help (`Auto , None )))) in
161+ let group = Cmd. group ~default info cmds in
161162 Stdlib. exit @@ Cmd. eval group
You can’t perform that action at this time.
0 commit comments