feat: add CLI argument parsing #3

Merged
erik merged 1 commit from feat/1278-cli-argument-parsing into main 2026-01-26 05:18:13 +00:00
Owner

Add simple argument parsing to support --name, --help, and --version flags.

Changes

  • Add parseArgs() function for manual argument parsing
  • Add main() function that handles output and exit codes
  • Support --name <value>, --help, --version flags
  • Invalid arguments show help and exit with code 1

Tests

  • 8 tests for parseArgs() covering all argument combinations
  • 5 tests for main() verifying output and exit codes

Task

Closes #1278

Add simple argument parsing to support --name, --help, and --version flags. ## Changes - Add `parseArgs()` function for manual argument parsing - Add `main()` function that handles output and exit codes - Support `--name <value>`, `--help`, `--version` flags - Invalid arguments show help and exit with code 1 ## Tests - 8 tests for `parseArgs()` covering all argument combinations - 5 tests for `main()` verifying output and exit codes ## Task Closes #1278
Support --name, --help, and --version flags with manual parsing.
- parseArgs() handles argument parsing
- main() handles output and exit codes
- Tests cover all argument combinations

Task: #1278
erik merged commit 4e8b5e3331 into main 2026-01-26 05:18:13 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
erik/hello-world!3
No description provided.