mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
Better handling for color in terminal (#381)
* better handling for color in terminal * cleanup * cleanup * cargo fmt * clippy + tests * clean
This commit is contained in:
@@ -80,6 +80,13 @@ pub fn build_cli() -> Command {
|
||||
.action(clap::ArgAction::SetTrue)
|
||||
.help("No colors will be printed (Useful for commands like: watch)"),
|
||||
)
|
||||
.arg(
|
||||
Arg::new("force_colors")
|
||||
.short('C')
|
||||
.long("force-colors")
|
||||
.action(clap::ArgAction::SetTrue)
|
||||
.help("Force colors print"),
|
||||
)
|
||||
.arg(
|
||||
Arg::new("no_bars")
|
||||
.short('b')
|
||||
|
||||
Reference in New Issue
Block a user