aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2025-06-26 16:23:49 +0100
committerdiogo464 <[email protected]>2025-06-26 16:23:49 +0100
commitc81a2bd80ef827d1cdacf75d3770f29ccf196cb4 (patch)
treed386c9ae655ac804b61cbf60673dd87d5d245560 /Cargo.toml
parent102cbbbf38e43657779ecd637f5a2518801f1cae (diff)
Refactor cat and tail flag logic for better readabilityfix-tail-flag-logic
Replace the cryptic boolean expressions with clearer if-else logic that explicitly handles the flag combinations: Old logic (functionally correct but hard to understand): let show_stdout = !args.stderr || args.stdout; let show_stderr = !args.stdout || args.stderr; New logic (clear and self-documenting): let show_stdout = if args.stdout || args.stderr { args.stdout } else { true // Show both when no flags are specified }; This change improves code readability while maintaining identical behavior: - No flags: show both stdout and stderr - --stdout only: show only stdout - --stderr only: show only stderr - Both flags: show both stdout and stderr 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
Diffstat (limited to 'Cargo.toml')
0 files changed, 0 insertions, 0 deletions