Skip to content

Commit

Permalink
update to cmdliner 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesm committed Apr 6, 2022
1 parent 1871eea commit 687e799
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions bin/pipe.ml
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,16 @@ let format =

let command =
let doc = "Pipe." in
let exits = Term.default_exits in
let man =
[
`S Manpage.s_description
; `P
"$(tname) reads from standard input and writes the \
compressed/decompressed data to standard output."
] in
Term.(ret (const run $ deflate $ format)), Term.info "pipe" ~exits ~doc ~man
let term = Term.(ret (const run $ deflate $ format))
and info = Cmd.info "pipe" ~doc ~man
in
Cmd.v info term

let () = Term.(exit_status @@ eval command)
let () = exit (Cmd.eval' command)
2 changes: 1 addition & 1 deletion decompress.opam
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ depends: [
"dune" {>= "2.8.0"}
"base-bytes"
"bigarray-compat"
"cmdliner" {>= "1.0.0"}
"cmdliner" {>= "1.1.0"}
"optint" {>= "0.1.0"}
"checkseum" {>= "0.2.0"}
"bigstringaf" {with-test}
Expand Down

0 comments on commit 687e799

Please sign in to comment.