diff options
| author | a-kenji <aks.kenji@protonmail.com> | 2021-05-11 22:09:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-11 22:09:33 +0200 |
| commit | 38b8f64ae641ae8f2ad993c2866d42b1f6a3d995 (patch) | |
| tree | 5d46cd3d0b5ceaaf7c79b1dfc6ccee15065923e6 /src/cli.rs | |
| parent | Merge pull request #488 from a-kenji/darwin-config-dir (diff) | |
| parent | !fixup Add Option for Simplified Layout (diff) | |
| download | sl0ppij-38b8f64ae641ae8f2ad993c2866d42b1f6a3d995.tar.gz sl0ppij-38b8f64ae641ae8f2ad993c2866d42b1f6a3d995.tar.xz sl0ppij-38b8f64ae641ae8f2ad993c2866d42b1f6a3d995.zip | |
Merge pull request #479 from a-kenji/simple-font-ui
Add Option for Simplified Layout
Diffstat (limited to 'src/cli.rs')
| -rw-r--r-- | src/cli.rs | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -1,4 +1,5 @@ use super::common::utils::consts::{ZELLIJ_CONFIG_DIR_ENV, ZELLIJ_CONFIG_FILE_ENV}; +use crate::common::input::options::Options; use serde::{Deserialize, Serialize}; use std::path::PathBuf; use structopt::StructOpt; @@ -10,6 +11,10 @@ pub struct CliArgs { #[structopt(long)] pub max_panes: Option<usize>, + /// Speficy, if a simplified layout should be used that is compatible with more fonts + #[structopt(long)] + pub simplified: bool, + /// Change where zellij looks for layouts and plugins #[structopt(long)] pub data_dir: Option<PathBuf>, @@ -36,21 +41,20 @@ pub struct CliArgs { #[derive(Debug, StructOpt, Clone, Serialize, Deserialize)] pub enum ConfigCli { /// Change the behaviour of zellij - #[structopt(name = "option")] - Config { - /// Disables loading of configuration file at default location - #[structopt(long)] - clean: bool, - }, + #[structopt(name = "options")] + Options(Options), #[structopt(name = "generate-completion")] GenerateCompletion { shell: String }, #[structopt(name = "setup")] Setup { - /// Disables loading of configuration file at default location /// Dump the default configuration file to stdout #[structopt(long)] dump_config: bool, + /// Disables loading of configuration file at default location, + /// loads the defaults that zellij ships with + #[structopt(long)] + clean: bool, }, } |
