Repository: eza-community/eza (language: rust)

Issue:
bug: `--color-scale` should default to `all`
The reason for this being a bug and not a feature request is it introduced a breaking change, which affected `zsh-eza`. Having a default behavior makes sense, as it doesn't hurt usability in any way, and spares the user from unnecessary thinking about how they use eza.

Refs: https://github.com/z-shell/zsh-eza/pull/20#issuecomment-1805383943 #628 


Discussion / hints:
Gonna take a look

Fix patch:
diff --git a/src/options/flags.rs b/src/options/flags.rs
index 90f29894b..b821074f4 100644
--- a/src/options/flags.rs
+++ b/src/options/flags.rs
@@ -20,8 +20,8 @@ pub static COLOR:  Arg = Arg { short: None, long: "color",  takes_value: TakesVa
 pub static COLOUR: Arg = Arg { short: None, long: "colour", takes_value: TakesValue::Optional(Some(WHEN), "auto") };
 const WHEN: &[&str] = &["always", "auto", "never"];
 
-pub static COLOR_SCALE:  Arg = Arg { short: None, long: "color-scale",  takes_value: TakesValue::Necessary(Some(SCALES)) };
-pub static COLOUR_SCALE: Arg = Arg { short: None, long: "colour-scale", takes_value: TakesValue::Necessary(Some(SCALES)) };
+pub static COLOR_SCALE:  Arg = Arg { short: None, long: "color-scale",  takes_value: TakesValue::Optional(Some(SCALES), "all") };
+pub static COLOUR_SCALE: Arg = Arg { short: None, long: "colour-scale", takes_value: TakesValue::Optional(Some(SCALES), "all") };
 pub static COLOR_SCALE_MODE:  Arg = Arg { short: None, long: "color-scale-mode",  takes_value: TakesValue::Necessary(Some(COLOR_SCALE_MODES))};
 pub static COLOUR_SCALE_MODE: Arg = Arg { short: None, long: "colour-scale-mode", takes_value: TakesValue::Necessary(Some(COLOR_SCALE_MODES))};
 const SCALES: Values = &["all", "size", "age"];


Test patch: