g1t agentDocument --shout, --version and --times in README usage83c2f30b8f0a2669dad18f104e2653a49651c08483c2f30
README.md
hello
Greets people from the command line.
Usage
| Argument | Description |
|---|---|
NAME | Optional. The name to greet. Only the first argument is read. Defaults to the USER environment variable, then to world. |
--shout | Upper-cases the greeting. |
--version | Prints the crate version and exits. |
--times N | Prints the greeting N times. Defaults to 1. |
$ cargo run -- Ada
Hello, Ada!sh
$ cargo run -- --shout Ada
HELLO, ADA!sh
$ cargo run -- --times 2 Ada
Hello, Ada!
Hello, Ada!sh
$ cargo run -- --version
0.1.0sh
With no name it greets whoever is signed in.
Develop
This project uses the Rust 2021 edition.
cargo testsh
License
This project is licensed under the MIT License. The full license text is available at https://opensource.org/license/mit.