Merge pull request #1210 from matthiasbeyer/imag-after-help

imag: Use App::after_help()
This commit is contained in:
Matthias Beyer 2018-01-08 23:30:51 +01:00 committed by GitHub
commit 15cc7d6805
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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");