Browse Source

Improved arg help messages

main 0.4.0
Unbewohnte 3 years ago
parent
commit
4dd246c5bd
  1. 8
      src/main.rs

8
src/main.rs

@ -30,7 +30,7 @@ fn main() {
.short("f") .short("f")
.long("fumo") .long("fumo")
.value_name("fumofile") .value_name("fumofile")
.help("choose another fumofumo to print") .help("Choose another fumofumo to print")
.takes_value(true) .takes_value(true)
.required(false) .required(false)
.default_value(FUMO_DEFAULT) .default_value(FUMO_DEFAULT)
@ -40,7 +40,7 @@ fn main() {
.short("d") .short("d")
.long("fumofiles_directory") .long("fumofiles_directory")
.value_name("fumofiles_directory_path") .value_name("fumofiles_directory_path")
.help("look for fumofiles in given directory instead") .help("Look for fumofiles in given directory")
.takes_value(true) .takes_value(true)
.required(false) .required(false)
.default_value(DEFAULT_FUMOFILES_DIR) .default_value(DEFAULT_FUMOFILES_DIR)
@ -49,7 +49,7 @@ fn main() {
Arg::with_name("list_fumos") Arg::with_name("list_fumos")
.short("l") .short("l")
.long("list_fumos") .long("list_fumos")
.help("lists all fumofiles in the default directory instead") .help("Lists all fumofiles in the default directory instead")
.takes_value(false) .takes_value(false)
.required(false) .required(false)
) )
@ -57,7 +57,7 @@ fn main() {
Arg::with_name("message") Arg::with_name("message")
.short("m") .short("m")
.long("message") .long("message")
.help("set a message to print") .help("Message to print")
.takes_value(true) .takes_value(true)
.index(1) .index(1)
.multiple(true) .multiple(true)

Loading…
Cancel
Save