Use App::after_help() for printing runtime-generated help output

This commit is contained in:
Matthias Beyer 2018-01-08 16:55:07 +01:00
parent 5e8feca6bb
commit 0c2308bd76
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ fn main() {
.multiple(false)
.help("Get the versions of the imag commands"))
.subcommand(SubCommand::with_name("help").help("Show help"))
.help(helptext.as_str());
.after_help(helptext.as_str());
let rt = Runtime::new(app)
.unwrap_or_else(|e| {
println!("Runtime couldn't be setup. Exiting");