Harmonize argument help text (#86)

Clap uses "Prints help information" for the help string, so change
verbs to match that.
This commit is contained in:
Casey Rodarmor 2016-11-12 09:52:52 -08:00 committed by GitHub
parent 981823cbab
commit 5a5209fb5c

View File

@ -57,12 +57,12 @@ pub fn app() {
.arg(Arg::with_name("list") .arg(Arg::with_name("list")
.short("l") .short("l")
.long("list") .long("list")
.help("List available recipes") .help("Lists available recipes")
.conflicts_with("dump") .conflicts_with("dump")
.conflicts_with("show")) .conflicts_with("show"))
.arg(Arg::with_name("dump") .arg(Arg::with_name("dump")
.long("dump") .long("dump")
.help("Print entire justfile") .help("Prints entire justfile")
.conflicts_with("show") .conflicts_with("show")
.conflicts_with("list")) .conflicts_with("list"))
.arg(Arg::with_name("show") .arg(Arg::with_name("show")
@ -70,43 +70,43 @@ pub fn app() {
.long("show") .long("show")
.takes_value(true) .takes_value(true)
.value_name("recipe") .value_name("recipe")
.help("Show information about <recipe>") .help("Shows information about <recipe>")
.conflicts_with("dump") .conflicts_with("dump")
.conflicts_with("list")) .conflicts_with("list"))
.arg(Arg::with_name("quiet") .arg(Arg::with_name("quiet")
.short("q") .short("q")
.long("quiet") .long("quiet")
.help("Suppress all output") .help("Suppresses all output")
.conflicts_with("dry-run")) .conflicts_with("dry-run"))
.arg(Arg::with_name("dry-run") .arg(Arg::with_name("dry-run")
.long("dry-run") .long("dry-run")
.help("Print recipe text without executing") .help("Prints what just would do without doing it")
.conflicts_with("quiet")) .conflicts_with("quiet"))
.arg(Arg::with_name("evaluate") .arg(Arg::with_name("evaluate")
.long("evaluate") .long("evaluate")
.help("Print evaluated variables")) .help("Prints evaluated variables"))
.arg(Arg::with_name("color") .arg(Arg::with_name("color")
.long("color") .long("color")
.takes_value(true) .takes_value(true)
.possible_values(&["auto", "always", "never"]) .possible_values(&["auto", "always", "never"])
.default_value("auto") .default_value("auto")
.help("Print colorful output")) .help("Prints colorful output"))
.arg(Arg::with_name("set") .arg(Arg::with_name("set")
.long("set") .long("set")
.takes_value(true) .takes_value(true)
.number_of_values(2) .number_of_values(2)
.value_names(&["variable", "value"]) .value_names(&["variable", "value"])
.multiple(true) .multiple(true)
.help("Set <variable> to <value>")) .help("Sets <variable> to <value>"))
.arg(Arg::with_name("working-directory") .arg(Arg::with_name("working-directory")
.long("working-directory") .long("working-directory")
.takes_value(true) .takes_value(true)
.help("Use <working-directory> as working directory. --justfile must also be set") .help("Uses <working-directory> as working directory. --justfile must also be set")
.requires("justfile")) .requires("justfile"))
.arg(Arg::with_name("justfile") .arg(Arg::with_name("justfile")
.long("justfile") .long("justfile")
.takes_value(true) .takes_value(true)
.help("Use <justfile> as justfile. --working-directory must also be set") .help("Uses <justfile> as justfile. --working-directory must also be set")
.requires("working-directory")) .requires("working-directory"))
.arg(Arg::with_name("arguments") .arg(Arg::with_name("arguments")
.multiple(true) .multiple(true)