Skip to content

Commit 36dc4cf

Browse files
iTroozsylvestre
authored andcommitted
add description to sccache-dist commands
1 parent 86abf90 commit 36dc4cf

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

src/bin/sccache-dist/cmdline/parse.rs

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ fn get_clap_command() -> ClapCommand {
112112
.subcommand_required(true)
113113
.subcommand(
114114
ClapCommand::new("auth")
115+
.about("Helper commands to generate authentication tokens")
115116
.subcommand_required(true)
116117
.subcommand(ClapCommand::new("generate-jwt-hs256-key"))
117118
.subcommand(
@@ -145,14 +146,25 @@ fn get_clap_command() -> ClapCommand {
145146
),
146147
),
147148
)
148-
.subcommand(ClapCommand::new("scheduler").args(&[
149-
config_with_help_message("Use the scheduler config file at PATH").required(true),
150-
syslog.clone(),
151-
]))
152-
.subcommand(ClapCommand::new("server").args(&[
153-
config_with_help_message("Use the server config file at PATH").required(true),
154-
syslog,
155-
]))
149+
.subcommand(
150+
ClapCommand::new("scheduler")
151+
.about(
152+
"Launch as a scheduler, to dispatch distributed builds across multiple servers",
153+
)
154+
.args(&[
155+
config_with_help_message("Use the scheduler config file at PATH")
156+
.required(true),
157+
syslog.clone(),
158+
]),
159+
)
160+
.subcommand(
161+
ClapCommand::new("server")
162+
.about("Launch as a server, to handle distributed builds assigned by the scheduler")
163+
.args(&[
164+
config_with_help_message("Use the server config file at PATH").required(true),
165+
syslog,
166+
]),
167+
)
156168
}
157169

158170
fn check_init_syslog(name: &str, log_level: LogLevel) {

0 commit comments

Comments
 (0)