Skip to content

Add --help, --version, and TTY detection to CLI#119

Merged
ldayton merged 2 commits intomainfrom
feat/100-cli-flags
Mar 22, 2026
Merged

Add --help, --version, and TTY detection to CLI#119
ldayton merged 2 commits intomainfrom
feat/100-cli-flags

Conversation

@ldayton
Copy link
Copy Markdown
Owner

@ldayton ldayton commented Mar 22, 2026

Summary

  • dippy --help / -h — shows usage, mode flags, and available options
  • dippy --version / -V — prints version for bug reports
  • TTY detection — when run interactively with no piped input, prints a hint instead of hanging forever waiting for JSON

All flags are early exits checked before json.load(sys.stdin).

Closes #100

ldayton added 2 commits March 22, 2026 21:22
Running dippy with no stdin no longer hangs — it detects the TTY and
prints a hint. --help/-h shows usage, --version/-V prints the version.
All checked before reading stdin.

Closes #100
@ldayton ldayton merged commit 7551595 into main Mar 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add --help and --version flags to CLI

1 participant