Dippy
Dippy copied to clipboard
Add --help and --version flags to CLI
The dippy command currently has no CLI affordances for discovery:
- Running
dippywith no stdin hangs forever waiting for JSON - No
--helpto discover usage or available mode flags - No
--versionto check installed version
Suggestions
| Flag | Purpose |
|---|---|
--help / -h |
Show usage, available mode flags (--claude, --gemini, --cursor) |
--version / -V |
Print version for bug reports |
--check-config |
Validate config without processing input |
| No-stdin detection | Show help instead of hanging when run interactively |
Implementation
These are "early exit" flags checked before json.load(sys.stdin) in main(). No conflict with existing --claude/--gemini/--cursor flags which are mode modifiers used alongside stdin input.
if "--help" in sys.argv or "-h" in sys.argv:
print("Usage: dippy [--claude|--gemini|--cursor]")
print("Reads JSON hook payload from stdin...")
sys.exit(0)