This commit is contained in:
a-kenji 2021-05-10 17:08:30 +02:00
parent 3c161a9de3
commit 9c5f0a05c1
2 changed files with 5 additions and 6 deletions

View file

@ -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;
@ -41,11 +42,7 @@ pub struct CliArgs {
pub enum ConfigCli {
/// Change the behaviour of zellij
#[structopt(name = "options")]
Options {
#[structopt(long)]
/// Allow plugins to use a more compatible font type
simplified_ui: bool,
},
Options(Options),
#[structopt(name = "generate-completion")]
GenerateCompletion { shell: String },

View file

@ -1,10 +1,12 @@
use serde::{Deserialize, Serialize};
use structopt::StructOpt;
#[derive(Clone, Default, Debug, PartialEq, Deserialize, Serialize)]
#[derive(Clone, Default, Debug, PartialEq, Deserialize, Serialize, StructOpt)]
/// Options that can be set either through the config file,
/// or cli flags
pub struct Options {
/// Allow plugins to use a more compatible font type
#[structopt(long)]
pub simplified_ui: bool,
}