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

View file

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