-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't see a clear way to show all available options for gh repo create <name> -l <license>
#8946
Comments
gh repo create <name> -l <license>
@devhindo : As these options are governed beyond While this idea of a semi-flag for listing options is interesting, I don't think it is realistic with how most argument and flag parsing libraries work. Again, the GitHub CLI doesn't govern what is a valid value. |
@andyfeller So, Can't we just provide a CLI option to make a GET request to these external APIs to list the available flag options? If not, We could provide these links in the docs under each flag to be more clear (as the docs were the first place I headed to when I couldn't enter a valid license and found nothing there). I also can't find the code for the mentioned documentation page where I can contribute and add the links you provided. |
@babakks Okay so that's fetched directly in the docs website here? |
@devhindo I think what you see in the CLI manual website you mentioned above is actually generated from the code (@andyfeller please correct if I'm wrong). So if you update the docs in the code, then both the the CLI manual website and the |
provide a list of available options for things like
--gitignore
or--license
example:
gh repo create --license -l
gh repo create --gitignore -l
reason: I don't know whether it's
Go
orgo
and I don't find other way than trying until it worksalso
mit
orMIT
? what if I wanted to check if new licenses are getting added?also idk if this is the best syntax for listing these options or not. knowing that it's not available on the docs
The text was updated successfully, but these errors were encountered: