aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2021-11-10 13:31:37 +0100
committerGitHub <noreply@github.com>2021-11-10 13:31:37 +0100
commitabbe3b237af1308a6108d513c75b41ad0a889e3a (patch)
tree6c114a5b5e1ebc5de8fbebb6b77e91bad3862f9d /src
parentdocs(changelog): unify environment variable's (diff)
downloadsl0ppij-abbe3b237af1308a6108d513c75b41ad0a889e3a.tar.gz
sl0ppij-abbe3b237af1308a6108d513c75b41ad0a889e3a.tar.xz
sl0ppij-abbe3b237af1308a6108d513c75b41ad0a889e3a.zip
add(feature): toggle boolean options with cli flag (#855)
add the ability to toggle boolean options with a cli flag: example: if the pane frames are turned off in the config file, then passing in the `--no-pane-frames` flag will toggle the pane frames on
Diffstat (limited to 'src')
-rw-r--r--src/commands.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands.rs b/src/commands.rs
index da97cee8..aec3970e 100644
--- a/src/commands.rs
+++ b/src/commands.rs
@@ -176,7 +176,7 @@ pub(crate) fn start_client(opts: CliArgs) {
})) = opts.command.clone()
{
let config_options = match options {
- Some(SessionCommand::Options(o)) => config_options.merge(o),
+ Some(SessionCommand::Options(o)) => config_options.merge_from_cli(o.into()),
None => config_options,
};