Skip to content

fix(handbook-glab): correct inaccurate command examples#15

Merged
NikiforovAll merged 2 commits intoNikiforovAll:mainfrom
mikemccabe:fix/glab-command-inaccuracies
Apr 1, 2026
Merged

fix(handbook-glab): correct inaccurate command examples#15
NikiforovAll merged 2 commits intoNikiforovAll:mainfrom
mikemccabe:fix/glab-command-inaccuracies

Conversation

@mikemccabe
Copy link
Copy Markdown

Summary

Fixes several inaccurate command examples in commands-detailed.md that produce errors when used:

  • glab issue close -m-m flag doesn't exist; replaced with glab issue note + glab issue close two-step
  • glab label create "bug" — positional argument doesn't work; replaced with --name flag
  • glab mr list --state=merged / glab issue list --state=closed--state flag doesn't exist; replaced with --merged, --closed, --all
  • glab mr view "opens in browser by default" — it shows in terminal by default; corrected description and replaced --web=false with --web
  • glab issue create — added --yes flag for non-interactive usage (important for scripting and LLM agents)
  • Common flags — clarified that glab api pagination uses URL query parameters, not flags

All fixes verified against glab <command> --help output (glab v1.52.0).

- glab issue close: remove nonexistent -m flag, use note+close two-step
- glab label create: use --name flag instead of positional argument
- glab mr list / issue list: replace --state=X with --merged/--closed/--all
- glab mr view: shows in terminal by default, not browser
- glab issue create: add --yes flag for non-interactive usage
- Common flags: clarify api pagination uses URL query params
@github-actions
Copy link
Copy Markdown
Contributor

🤖 Handbookbot here — friendly nudge!

This PR hasn't been updated in 23 days. Is there anything blocking progress? Happy to help if you need anything.

If this PR is no longer needed, feel free to close it.

Generated by 🤖 Handbookbot. Part of the Claude Code Handbook.

@NikiforovAll
Copy link
Copy Markdown
Owner

@mikemccabe thank you

@NikiforovAll NikiforovAll merged commit f605c55 into NikiforovAll:main Apr 1, 2026
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.

2 participants