aboutsummaryrefslogtreecommitdiff
path: root/src/cliargs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cliargs.rs')
-rw-r--r--src/cliargs.rs11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/cliargs.rs b/src/cliargs.rs
index bb3c8d1..3c302f4 100644
--- a/src/cliargs.rs
+++ b/src/cliargs.rs
@@ -24,7 +24,6 @@ use std::path::PathBuf;
use walkdir::WalkDir;
use crate::app;
-use crate::tui::colors::AppColors;
// struct for CLIArgs
#[derive(Debug, Default, Clone)]
@@ -32,11 +31,8 @@ pub struct CLIArgs {
pub helparg: bool,
pub versionarg: bool,
pub pos_args: Vec<PathBuf>,
- // pub files: Vec<PathBuf>,
pub cfg_path: PathBuf,
- // INFO: AppColors struct later should be moved to config/app struct
- // when config file is implemented
- pub colors: AppColors,
+ pub light_theme: bool,
}
impl CLIArgs {
@@ -56,10 +52,7 @@ impl CLIArgs {
Short('h') | Long("help") => args.helparg = true,
Short('v') | Long("version") => args.versionarg = true,
Short('c') | Long("config-file") => args.cfg_path = parser.value()?.parse()?,
- Long("light-terminal") => {
- args.colors.light_colors();
- args.colors.toggle_color_scheme()
- }
+ Long("light-terminal") => args.light_theme = true,
// Value(pos_arg) => parse_files(&mut args, pos_arg),
Value(pos_arg) => args.pos_args.push(pos_arg.into()),
_ => return Err(arg.unexpected()),