mirror of https://github.com/garrytan/gstack.git
Currently \`screenshot --clip\` only accepts the space-separated form:
browse screenshot --clip 100,200,300,400 out.png
GNU long-option convention also supports the \`--flag=value\` form, which is
handy when generating commands programmatically (no need to track whether
the next argv element is the value or another flag) and matches what most
CLI users expect. After this change, both work:
browse screenshot --clip 100,200,300,400 out.png # existing, unchanged
browse screenshot --clip=100,200,300,400 out.png # new
Two-line change in the option parser. Existing space-separated callers and
the error message ("Usage: screenshot --clip x,y,w,h [path]") are
unchanged. Other flags in this handler (--viewport, --selector, --base64)
keep their current single-form parsing — if folks want \`--viewport=\` etc.
that's a worthwhile follow-up but feels out of scope for a one-flag patch.
|
||
|---|---|---|
| .. | ||
| bin | ||
| scripts | ||
| src | ||
| test | ||
| PLAN-snapshot-dropdown-interactive.md | ||
| SKILL.md | ||
| SKILL.md.tmpl | ||