Skip to content

Chore: CLI flags and simple argument parsing (--count, --no-ascii, --emoji) #11

Description

@wiertmir

Goal

Add simple CLI flags parsing to support demo options: --count N to seed N random monkeys, --no-ascii to suppress art, --emoji, etc.

Why

Makes the app scriptable for demos and CI runs.

Light implementation notes

  • Implement a minimal ParseArgs(string[] args) in Program.cs returning an options object.
  • Support: --count <N>, --no-ascii, --no-color, --emoji, --repl, --no-anim.
  • Prefer not to add a dependency; manual parsing is fine for this small set. Optionally later replace with System.CommandLine.
  • Add unit tests for parsing edge-cases.

Files to modify/create

  • MyMonkeyApp/Program.cs
  • MyMonkeyApp/Helpers/ArgParser.cs (optional)

Labels:["enhancement","feature-request","good first issue","area-console"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions