aboutsummaryrefslogtreecommitdiffstats
path: root/src/commands.rs
diff options
context:
space:
mode:
authorJae-Heon Ji <32578710+jaeheonji@users.noreply.github.com>2022-07-24 21:30:58 +0900
committerGitHub <noreply@github.com>2022-07-24 21:30:58 +0900
commit09481aac1986b7486e92d9dcd2baeb96a5d71e6e (patch)
treec64e376d003e9fb01d5f5567854e4bb5d816243d /src/commands.rs
parentflake.lock: Update (#1601) (diff)
downloadsl0ppij-09481aac1986b7486e92d9dcd2baeb96a5d71e6e.tar.gz
sl0ppij-09481aac1986b7486e92d9dcd2baeb96a5d71e6e.tar.xz
sl0ppij-09481aac1986b7486e92d9dcd2baeb96a5d71e6e.zip
feat: support `themes` directory (#1577)
* feat: add serde struct for theme file * feat: update client to load the theme palette * feat: merge themes in the setup phase * chore: delete debug message in test * feat: add theme_dir options * fix: boxing large enum variant
Diffstat (limited to 'src/commands.rs')
-rw-r--r--src/commands.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands.rs b/src/commands.rs
index 5abedf3d..58a464d7 100644
--- a/src/commands.rs
+++ b/src/commands.rs
@@ -265,8 +265,8 @@ pub(crate) fn start_client(opts: CliArgs) {
options,
})) = opts.command.clone()
{
- let config_options = match options {
- Some(SessionCommand::Options(o)) => config_options.merge_from_cli(o.into()),
+ let config_options = match options.as_deref() {
+ Some(SessionCommand::Options(o)) => config_options.merge_from_cli(o.to_owned().into()),
None => config_options,
};