forked from DGNum/colmena
Minor fixes to CLI help messages
This commit is contained in:
parent
be8e30cebf
commit
2cb429ed8d
3 changed files with 11 additions and 4 deletions
|
@ -16,8 +16,12 @@ pub fn subcommand() -> App<'static, 'static> {
|
||||||
.arg(Arg::with_name("parallel")
|
.arg(Arg::with_name("parallel")
|
||||||
.short("p")
|
.short("p")
|
||||||
.long("parallel")
|
.long("parallel")
|
||||||
|
.value_name("LIMIT")
|
||||||
.help("Parallelism limit")
|
.help("Parallelism limit")
|
||||||
.long_help("Set to 0 to disable parallemism limit.")
|
.long_help(r#"Limits the maximum number of hosts to be deployed in parallel.
|
||||||
|
|
||||||
|
Set to 0 to disable parallemism limit.
|
||||||
|
"#)
|
||||||
.default_value("10")
|
.default_value("10")
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.validator(|s| {
|
.validator(|s| {
|
||||||
|
|
|
@ -41,6 +41,7 @@ async fn main() {
|
||||||
.arg(Arg::with_name("config")
|
.arg(Arg::with_name("config")
|
||||||
.short("f")
|
.short("f")
|
||||||
.long("config")
|
.long("config")
|
||||||
|
.value_name("CONFIG")
|
||||||
.help("Path to a Hive expression")
|
.help("Path to a Hive expression")
|
||||||
|
|
||||||
// The default value is a lie (sort of)!
|
// The default value is a lie (sort of)!
|
||||||
|
|
|
@ -126,9 +126,11 @@ pub fn register_selector_args<'a, 'b>(command: App<'a, 'b>) -> App<'a, 'b> {
|
||||||
command
|
command
|
||||||
.arg(Arg::with_name("on")
|
.arg(Arg::with_name("on")
|
||||||
.long("on")
|
.long("on")
|
||||||
.help("Select a list of machines")
|
.value_name("NODES")
|
||||||
.long_help(r#"The list is comma-separated and globs are supported. To match tags, prepend the filter by @.
|
.help("Node selector")
|
||||||
Valid examples:
|
.long_help(r#"Select a list of nodes to deploy to.
|
||||||
|
|
||||||
|
The list is comma-separated and globs are supported. To match tags, prepend the filter by @. Valid examples:
|
||||||
|
|
||||||
- host1,host2,host3
|
- host1,host2,host3
|
||||||
- edge-*
|
- edge-*
|
||||||
|
|
Loading…
Reference in a new issue