diff options
| author | lukeflo | 2024-11-29 10:46:13 +0100 |
|---|---|---|
| committer | lukeflo | 2024-11-29 10:46:13 +0100 |
| commit | c4d82e66bdd253cf97fd0a04c251b29e82edc92b (patch) | |
| tree | c9e678182460a4bc7b98452ddcf7373063ac76f0 /src/cliargs.rs | |
| parent | 93fc2222b008bc7dd8eaafcafa341c6aed440d6e (diff) | |
| download | bibiman-c4d82e66bdd253cf97fd0a04c251b29e82edc92b.tar.gz bibiman-c4d82e66bdd253cf97fd0a04c251b29e82edc92b.zip | |
implemented light color scheme
Diffstat (limited to 'src/cliargs.rs')
| -rw-r--r-- | src/cliargs.rs | 15 |
1 files changed, 11 insertions, 4 deletions
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: <file> Path to .bib file + <dir> 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"), ); |
