Option.filter(flag, Boolean) collapses Some(false) into None, making it impossible to explicitly override an env-set true to false via CLI flags. Since Flag.optional already returns None for absent flags, the filter is unnecessary and incorrect — Option.getOrElse alone correctly falls back to the env value only when the flag is truly absent. Co-authored-by: Julius Marminge <[email protected]>