typo in help
This commit is contained in:
parent
45de9713e9
commit
782fff9ac8
2 changed files with 21 additions and 40 deletions
|
@ -51,7 +51,7 @@ fn main() {
|
|||
.short("i")
|
||||
.long("id")
|
||||
.value_name("ID")
|
||||
.help("Id of the book to download. Copy the last to url parts on the overview page to get it (for example bbb/0003).")
|
||||
.help("Id of the book to download. Copy the last two url parts on the overview page to get it (for example bbb/0003).")
|
||||
.takes_value(true),
|
||||
)
|
||||
.setting(AppSettings::ArgRequiredElseHelp);
|
||||
|
@ -67,6 +67,8 @@ fn main() {
|
|||
println!("ID is a required argument:");
|
||||
println!();
|
||||
app.clone().print_help().ok();
|
||||
println!();
|
||||
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue