Document --shout, --version and --times in README usage
1 file+19−00/1 viewed
| 7 | 7 | | Argument | Description | | |
| 8 | 8 | | -------- | ----------- | | |
| 9 | 9 | | `NAME` | Optional. The name to greet. Only the first argument is read. Defaults to the `USER` environment variable, then to `world`. | | |
| 10 | + | | `--shout` | Upper-cases the greeting. | | |
| 11 | + | | `--version` | Prints the crate version and exits. | | |
| 12 | + | | `--times N` | Prints the greeting `N` times. Defaults to 1. | | |
| 10 | 13 | ||
| 11 | 14 | ```sh | |
| 12 | 15 | $ cargo run -- Ada | |
| 13 | 16 | Hello, Ada! | |
| 14 | 17 | ``` | |
| 15 | 18 | ||
| 19 | + | ```sh | |
| 20 | + | $ cargo run -- --shout Ada | |
| 21 | + | HELLO, ADA! | |
| 22 | + | ``` | |
| 23 | + | ||
| 24 | + | ```sh | |
| 25 | + | $ cargo run -- --times 2 Ada | |
| 26 | + | Hello, Ada! | |
| 27 | + | Hello, Ada! | |
| 28 | + | ``` | |
| 29 | + | ||
| 30 | + | ```sh | |
| 31 | + | $ cargo run -- --version | |
| 32 | + | 0.1.0 | |
| 33 | + | ``` | |
| 34 | + | ||
| 16 | 35 | With no name it greets whoever is signed in. | |
| 17 | 36 | ||
| 18 | 37 | ## Develop |