From c4d82e66bdd253cf97fd0a04c251b29e82edc92b Mon Sep 17 00:00:00 2001 From: lukeflo Date: Fri, 29 Nov 2024 10:46:13 +0100 Subject: implemented light color scheme --- src/cliargs.rs | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/cliargs.rs') diff --git a/src/cliargs.rs b/src/cliargs.rs index d6c27c4..5f83eb3 100644 --- a/src/cliargs.rs +++ b/src/cliargs.rs @@ -43,7 +43,10 @@ impl CLIArgs { match arg { Short('h') | Long("help") => args.helparg = true, Short('v') | Long("version") => args.versionarg = true, - Long("light-theme") => AppColors::light_colors(&mut args.colors), + Long("light-terminal") => { + args.colors.light_colors(); + args.colors.toggle_color_scheme() + } // Value(pos_arg) => parse_files(&mut args, pos_arg), Value(pos_arg) => args.pos_args.push(pos_arg.into()), _ => return Err(arg.unexpected()), @@ -98,14 +101,18 @@ pub fn help_func() -> String { {} {} USAGE: - bibiman [FLAGS] [file] + bibiman [FLAGS] [files/dirs] POSITIONAL ARGS: Path to .bib file + Path to directory containing .bib files + + Both can be passed multiple times FLAGS: - -h, --help Show this help and exit - -v, --version Show the version and exit", + -h, --help Show this help and exit + -v, --version Show the version and exit + --light-terminal Enable color mode for light terminal background", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION"), ); -- cgit v1.2.3