-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[create-astro] --help
does not print all possible flags
#6339
Comments
Hi @ansidev , what are the flags you expect to see? |
You can see possible flags here: https://github.com/withastro/astro/blob/main/packages/create-astro/src/actions/context.ts#L30-L51 |
Thanks for catching this—PRs welcome! Not sure if we'll have time to update ourselves but this seems like a great first issue for someone. |
Hello 👋🏼 , if @ematipico wants to work on it then go on, if not I would love to pick it up 👍🏼 |
@SerekKiri At least this solution might resolve this issue, however, your solution does not solve it. If flags were added, however, the developer forgets to update the help command, which will cause this issue again. I expect a solution that automatically generates output for |
Ok, sounds good 👍🏼 I missed that part in the description 😅 |
@ansidev one question tho, do you expect for the ones that would be automatically added to have description? |
Perfect is the enemy of good :) Flags are not added often enough to justify some big effort to attempt to automate them. So we should just add the ones that are missing imo :) |
Yup, totally agreed! Maybe can be just as small as a checkbox on the PR template. |
@rishi-raj-jain hmm a checkbox is not a bad idea but does it make sens to add it to a template? I think it's a good thing to focus on during a code review and for a developer to remember. |
I like this library: https://github.com/urfave/cli |
What version of
astro
are you using?latest
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
pnpm
What operating system are you using?
macOS
Describe the Bug
Steps to reproduce:
pnpm create astro@latest --help
.--help
does not print all possible flags. These flags should be generated automatically.Link to Minimal Reproducible Example
N/A
Participation
The text was updated successfully, but these errors were encountered: