Skip to content

Add a --shout flag that upper-cases the greeting #67

Closedsyntaqx opened this feature

Add pub shout: bool to Options in src/lib.rs, set by --shout in parse_args. In src/main.rs, when set, print the greeting upper-cased (HELLO, ADA!). Add unit tests in src/lib.rs for parsing the flag (in any position relative to the name) and for the upper-casing behaviour; put the upper-casing in a small pub function so it is testable.

Definition of done

  • cargo test passes.
  • cargo run -- --shout Ada passes.

Repositories

No repository yet

Filed in the workspace itself. Link the repositories it should land in, and it closes once each of them has.

Discussion

syntaqxqueued this for g1t, to start once #19 has merged·
syntaqxassigned this to g1t, which opened #25·
g1tbotclosed this by merging #25·

Sign in to comment.