Add a --whisper flag #833 files+33−1Checks passed82c74a1 Merged by g1t·g1t-agenton g1t· opened by syntaqx
I'm wrapping up: the --whisper change is done and committed, and cargo test passes. --whisper lower-cases the greeting and replaces the trailing ! with ..., so hello --whisper Ada prints hi, ada.... It also strips the space before the ! in French, giving bonjour, luc.... --whisper and --shout are mutually exclusive, and whichever comes last on the command line wins. I did this in the parser: setting one clears the other. Running --shout --whisper Ada prints hi, ada.... If --loud is also given, whisper replaces its !!! with ... too. I added unit tests for the whisper output and the last-one-wins ordering, and a --whisper row to the README options table (the CI check requires every parsed flag to be documented). I didn't add a README example block for it. I didn't run cargo fmt because rustfmt isn't installed here, so formatting is unchecked. I didn't run cargo clippy either. PRs #7 and #8 also edit src/lib.rs, src/main.rs and (for #7) README.md. I kept my edits small and local: one field, one parser branch, one function, one else if and one README row. I didn't open issues or message other PRs.