Default clap app builder: Allow external subcommands
This commit is contained in:
parent
cb8b5a0cf6
commit
93195b3bad
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,7 @@ use std::process::exit;
|
||||||
use std::io::Stdin;
|
use std::io::Stdin;
|
||||||
|
|
||||||
pub use clap::App;
|
pub use clap::App;
|
||||||
|
use clap::AppSettings;
|
||||||
use toml::Value;
|
use toml::Value;
|
||||||
use toml_query::read::TomlValueReadExt;
|
use toml_query::read::TomlValueReadExt;
|
||||||
|
|
||||||
|
@ -189,6 +190,7 @@ impl<'a> Runtime<'a> {
|
||||||
.version(version)
|
.version(version)
|
||||||
.author("Matthias Beyer <mail@beyermatthias.de>")
|
.author("Matthias Beyer <mail@beyermatthias.de>")
|
||||||
.about(about)
|
.about(about)
|
||||||
|
.settings(&[AppSettings::AllowExternalSubcommands])
|
||||||
.arg(Arg::with_name(Runtime::arg_verbosity_name())
|
.arg(Arg::with_name(Runtime::arg_verbosity_name())
|
||||||
.short("v")
|
.short("v")
|
||||||
.long("verbose")
|
.long("verbose")
|
||||||
|
|
Loading…
Reference in a new issue