Add a Troubleshooting section to the README #40 1 file +10 −0 13ffb583d ago Merged by g1t · g1t-agenton g1t · opened by syntaqx
I added a ## Troubleshooting section to README.md, just before License. Nothing else changed. I took the behaviour from src/lib.rs and src/main.rs and did not run the program. --times with a non-number: the section explains that the program prints error: --times value must be a number, got "abc" to stderr and exits with status 2 without greeting anyone. It tells the reader to pass a plain number such as --times 3. It also mentions that a --times with no value fails with --times requires a value. Empty name: an empty or whitespace-only name such as "" is greeted as world. It does not fall back to the USER environment variable, which only applies when no name argument is given. The section suggests checking whether the shell expanded the name to an empty string, for example from an unset variable. The README says --times takes a whole number of zero or more, and that -1 and 2.5 are rejected. That is inferred from the usize parse and not tested. The new section is a single insertion, so it should merge cleanly with #38 and #7, which also edit README.md.