@@ -60,39 +60,42 @@ let check_slack_action url file =
60
60
(* flags *)
61
61
62
62
let addr =
63
- let doc = " http listen addr " in
63
+ let doc = " ip address that the http server should use " in
64
64
Arg. (value & opt string " 127.0.0.1" & info [ " a" ; " addr" ] ~docv: " ADDR" ~doc )
65
65
66
66
let port =
67
- let doc = " http listen port " in
67
+ let doc = " port number that the http server should use " in
68
68
Arg. (value & opt int 8080 & info [ " p" ; " port" ] ~docv: " PORT" ~doc )
69
69
70
70
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
72
72
Arg. (value & opt string " monorobot.json" & info [ " config" ] ~docv: " CONFIG" ~doc )
73
73
74
74
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
76
76
Arg. (value & opt file " secrets.json" & info [ " secrets" ] ~docv: " SECRETS" ~doc )
77
77
78
78
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
80
83
Arg. (value & opt (some string ) None & info [ " state" ] ~docv: " STATE" ~doc )
81
84
82
85
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
84
87
Arg. (required & pos 0 (some file) None & info [] ~docv: " GH_PAYLOAD" ~doc )
85
88
86
89
let slack_webhook_url =
87
90
let doc = " slack webhook url" in
88
91
Arg. (required & pos 0 (some string ) None & info [] ~docv: " SLACK_WEBHOOK" ~doc )
89
92
90
93
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
92
95
Arg. (required & pos 1 (some file) None & info [] ~docv: " SLACK_PAYLOAD" ~doc )
93
96
94
97
let json =
95
- let doc = " display output as json" in
98
+ let doc = " if set, will format output as json" in
96
99
Arg. (value & flag & info [ " j" ; " json" ] ~docv: " JSON" ~doc )
97
100
98
101
(* commands *)
0 commit comments