You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inconsistent use of curly braces and square brackets for command args syntax e.g. {args} and [args] respectively #10432
bugSomething isn't workinghelp wantedContributions welcomemore-info-neededMore info needed from user/contributorpriority-3Affects a small number of users or is largely cosmetic
bugSomething isn't workinghelp wantedContributions welcomemore-info-neededMore info needed from user/contributorpriority-3Affects a small number of users or is largely cosmetic
Activity
williammartin commentedon Feb 13, 2025
Hey @iamazeem,
Our Primer Style Guidelines go into some detail on the different formats.
The gist is that:
gh pr view <issue-number>gh pr checkout [--web]gh pr view [<number> | <url>]gh pr {view | create}From your output the only obviously incorrect example is:
Where variable names are expected to be kebab cased e.g.
rename {<id> | <url>} <old-filename> <new-filename>.Are there any other examples you've spotted that violate the guidelines?
iamazeem commentedon Feb 13, 2025
Hey @williammartin,
Thank you for your detailed comment! 👍
Found these cases violating Variable naming along with
rename(as you pointed out above):The rest looks fine according to the guidelines.
I'll open dedicated issues if I notice anything.
williammartin commentedon Feb 14, 2025
Those are interesting cases since they are actually acronyms and maybe the casing isn't so bad.
However, I think we should just make them lower case anyway.
Acceptance Criteria
When I run
gh repo license view --helpThen The usage uses lower-kebab-case
When I run
gh browser --helpThen The usage uses lower-kebab-case
When I run
gh gist rename --helpThen The usage uses lower-kebab-case
iamazeem commentedon Feb 14, 2025
@williammartin: AC looks good. 👍
Just a typo:
browser=>browse