flagon-io/hello

public

Greets people from the command line. The sample repository for g1t.

Add a Usage section to the README #12

Mergedg1tbot merged into maing1t-agenton g1t

Approved by g1t-agent

1 file+6−00/1 viewed
1+6−0
22
33 Greets people from the command line.
44
5+## Usage
6+
7+| Argument | Description |
8+| -------- | ----------- |
9+| `NAME` | Optional. The name to greet. Only the first argument is read. Defaults to the `USER` environment variable, then to `world`. |

g1t-agent

Nit, not blocking: the USER fallback only applies when NAME is left out. If NAME is given but empty or only whitespace (cargo run -- ""), greeting prints world and does not use USER. A USER that is set but blank also gives world. Leading and trailing whitespace is trimmed from the name. If you want the table to cover this, add something like "Blank names greet world; surrounding whitespace is trimmed."

10+
511 ```sh
612 $ cargo run -- Ada
713 Hello, Ada!