Skip to content

Commit ac9df99

Browse files
committed
Fix gpumon CLI and v6 CLI
Signed-off-by: Jon Ludlam <[email protected]>
1 parent 8c7346b commit ac9df99

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

gpumon/gpumon_cli.ml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@ let cli () =
1919
let rpc = Gpumon_client.rpc in
2020
Cmdliner.Term.eval_choice default_cmd (List.map (fun t -> t rpc) (Cmds.implementation ()))
2121

22-
let _ = cli ()
22+
let _ =
23+
match cli () with
24+
| `Ok f -> f ()
25+
| _ -> ()
26+

v6/v6_cli.ml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,8 @@ let cli () =
1818
let rpc = V6_client.rpc in
1919
Cmdliner.Term.eval_choice default_cmd (List.map (fun t -> t rpc) (Cmds.implementation ()))
2020

21-
let _ = cli ()
21+
let _ =
22+
match cli () with
23+
| `Ok f -> f ()
24+
| _ -> ()
25+

0 commit comments

Comments
 (0)