···515515 since POSIX shells do not "pipefail" *)
516516 match tmp_file_for_pager () with
517517 | None -> false
518518- | Some tmp ->
519519- run (strf "%s <%s >%s && %s <%s" groffer f tmp pager tmp)
518518+ | Some tmp ->
519519+ run (strf "%s <%s >%s && %s <%s" groffer f tmp pager tmp)
520520 in
521521 match find_pager env with
522522 | None -> print `Plain ppf v
+8-9
vendor/opam/cmdliner/test/test_shell.ml
···4444 Arg.(value & pos_all arg_conv [] & info [] ~doc ~docv:"ARG")
4545 and+ message =
4646 let doc = "Use me to test the Message directive in completion" in
4747- Arg.(value
4848- & opt
4949- (some Conv.(of_conv ~completion:(
5050- Arg.Completion.make ?context:None
5151- (fun _ ~token:_ -> Error "whoops! This is a message!"))
5252- string)
5353- )
5454- None
5555- & info ["message"] ~doc)
4747+ let msg_conv =
4848+ let completion =
4949+ let complete _ ~token:_ = Error "whoops! This is a message!" in
5050+ Arg.Completion.make ?context:None complete
5151+ in
5252+ Arg.Conv.of_conv ~completion Arg.string
5353+ in
5454+ Arg.(value & opt (some msg_conv) None & info ["message"] ~doc)
5655 in
5756 tool ~file ~dir ~path ~choice ~cmd ~message
5857