Skip to content

Commit 8a78d71

Browse files
committed
update cli command option descriptions
1 parent 57abaa7 commit 8a78d71

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/monorobot.ml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,39 +60,42 @@ let check_slack_action url file =
6060
(* flags *)
6161

6262
let addr =
63-
let doc = "http listen addr" in
63+
let doc = "ip address that the http server should use" in
6464
Arg.(value & opt string "127.0.0.1" & info [ "a"; "addr" ] ~docv:"ADDR" ~doc)
6565

6666
let port =
67-
let doc = "http listen port" in
67+
let doc = "port number that the http server should use" in
6868
Arg.(value & opt int 8080 & info [ "p"; "port" ] ~docv:"PORT" ~doc)
6969

7070
let config =
71-
let doc = "remote configuration file name" in
71+
let doc = "name of the remote configuration file to retrieve from the root directory of a repository's main branch" in
7272
Arg.(value & opt string "monorobot.json" & info [ "config" ] ~docv:"CONFIG" ~doc)
7373

7474
let secrets =
75-
let doc = "configuration file containing secrets" in
75+
let doc = "path to a local configuration file containing secrets to load on startup" in
7676
Arg.(value & opt file "secrets.json" & info [ "secrets" ] ~docv:"SECRETS" ~doc)
7777

7878
let state =
79-
let doc = "state file" in
79+
let doc =
80+
"path to a local file containing runtime state to load on startup; if specified file does not yet exist, a new one \
81+
will be created; if unspecified, no state will be persisted during execution"
82+
in
8083
Arg.(value & opt (some string) None & info [ "state" ] ~docv:"STATE" ~doc)
8184

8285
let gh_payload =
83-
let doc = "JSON file containing a github webhook payload" in
86+
let doc = "path to a JSON file containing a github webhook payload" in
8487
Arg.(required & pos 0 (some file) None & info [] ~docv:"GH_PAYLOAD" ~doc)
8588

8689
let slack_webhook_url =
8790
let doc = "slack webhook url" in
8891
Arg.(required & pos 0 (some string) None & info [] ~docv:"SLACK_WEBHOOK" ~doc)
8992

9093
let slack_payload =
91-
let doc = "JSON file containing a slack notification" in
94+
let doc = "path to a JSON file containing a slack notification payload" in
9295
Arg.(required & pos 1 (some file) None & info [] ~docv:"SLACK_PAYLOAD" ~doc)
9396

9497
let json =
95-
let doc = "display output as json" in
98+
let doc = "if set, will format output as json" in
9699
Arg.(value & flag & info [ "j"; "json" ] ~docv:"JSON" ~doc)
97100

98101
(* commands *)

0 commit comments

Comments
 (0)