Skip to content

feat: add --help/-h flag for gsw and gsw-local#8

Merged
sakebook merged 1 commit into
mainfrom
feature/add-help-flag
Jan 7, 2026
Merged

feat: add --help/-h flag for gsw and gsw-local#8
sakebook merged 1 commit into
mainfrom
feature/add-help-flag

Conversation

@sakebook

@sakebook sakebook commented Jan 7, 2026

Copy link
Copy Markdown
Owner

Summary

Add --help / -h flag for both gsw and gsw-local commands.

Changes

  • gsw --help shows static usage documentation (no config list, fast)
  • gsw without args still shows config list + usage (unchanged behavior)
  • Added tests for both --help and -h flags
  • Bump version to v0.2.0

Why

--help is a de facto standard for CLI tools, and AI agents often use this flag as the first step to understand how a tool works.

Design Decision

--help shows static documentation only (no config list) because:

  1. Help output should be static, not include dynamic environment-specific data
  2. Faster execution (no gcloud call required)
  3. Cleaner output for AI parsing

- gsw --help shows static usage documentation (no config list)
- gsw without args still shows config list + usage
- Added tests for both --help and -h flags
- Bump version to v0.2.0
@sakebook sakebook merged commit 3a64fc1 into main Jan 7, 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.

1 participant