diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-07-24 18:05:29 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-07-24 19:30:04 +0200 |
commit | 6f0670003be5958644d0853018452352f27ca97b (patch) | |
tree | f9dbbd1d9888007e4391dc90ec4e3914cf1e230d /libimagrt | |
parent | 783462899a187d7b6882362eb22ac0feebad1958 (diff) |
Add default commandline argument for configuration override
Diffstat (limited to 'libimagrt')
-rw-r--r-- | libimagrt/src/runtime.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libimagrt/src/runtime.rs b/libimagrt/src/runtime.rs index 4f5a705f..e5b31898 100644 --- a/libimagrt/src/runtime.rs +++ b/libimagrt/src/runtime.rs @@ -179,6 +179,12 @@ impl<'a> Runtime<'a> { .required(false) .takes_value(true)) + .arg(Arg::with_name("config-override") + .long("override-config") + .help("Override a configuration settings. Use 'key=value' pairs, where the key is a path in the TOML configuration. The value must be present in the configuration and be convertible to the type of the configuration setting. If the argument does not contain a '=', it gets ignored. Setting Arrays and Tables is not yet supported.") + .required(false) + .takes_value(true)) + .arg(Arg::with_name("runtimepath") .long("rtp") .help("Alternative runtimepath") |