Skip to content

Commit 13623ad

Browse files
authored
Merge pull request #279 from kit-ty-kate/cmdliner2
Add support for cmdliner 2.0.0
2 parents 02fdb21 + 21276e1 commit 13623ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jar/jar.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ let prompt = "Enter Github password: "
2525
let scope =
2626
let parse s =
2727
match Github.Scope.of_string s with
28-
|None -> `Error "unknown scope"
29-
|Some s -> `Ok s in
28+
| None -> Error (`Msg "unknown scope")
29+
| Some s -> Ok s in
3030
let print f s = Format.pp_print_string f (Github.Scope.to_string s) in
31-
parse, print
31+
Arg.conv (parse, print)
3232

3333
let complete_2fa c =
3434
let rec try_again f = Github.(Monad.(f () >>~ function

0 commit comments

Comments
 (0)