Dippy icon indicating copy to clipboard operation
Dippy copied to clipboard

Add --help and --version flags to CLI

Open ldayton opened this issue 10 months ago • 0 comments

The dippy command currently has no CLI affordances for discovery:

  • Running dippy with no stdin hangs forever waiting for JSON
  • No --help to discover usage or available mode flags
  • No --version to 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)

ldayton avatar Jan 25 '26 07:01 ldayton