Skip to content

Commit

Permalink
Update example to cmdliner.1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
reynir committed Mar 16, 2022
1 parent 8fa846e commit 3e5b8ff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/ssh_add.ml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ let key_comment =

let () =
let term =
Term.(const main $ bits $ key_comment),
Term.info "ssh-add" ~version:"0.1" in
match Term.eval term with
| `Error _ -> exit 1
| _ -> exit 0
Cmd.v (Cmd.info "ssh-add" ~version:"0.1")
Term.(const main $ bits $ key_comment)
in
Cmd.eval term
|> exit

0 comments on commit 3e5b8ff

Please sign in to comment.