From 6f0670003be5958644d0853018452352f27ca97b Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 24 Jul 2016 18:05:29 +0200 Subject: [PATCH] Add default commandline argument for configuration override --- libimagrt/src/runtime.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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")