Skip to content
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-vite: add CLI argument help #16374

Open
4 tasks done
milahu opened this issue Apr 7, 2024 · 6 comments · May be fixed by #16390
Open
4 tasks done

create-vite: add CLI argument help #16374

milahu opened this issue Apr 7, 2024 · 6 comments · May be fixed by #16390

Comments

@milahu
Copy link
Contributor

milahu commented Apr 7, 2024

Description

npx create-vite --help should show help for command line usage

Suggested solution

something like ...

Usage: create-vite [OPTION]... [DIRECTORY]
Create a new JavaScript project based on Vite.

With no arguments, start an interactive command line dialog.

Options:
  -t, --template NAME        use this template

Available templates:
...

Alternative

read the source of create-vite to find the CLI arguments

const argv = minimist<{
  t?: string
  template?: string
}>(process.argv.slice(2), { string: ['_'] })

Additional context

No response

Validations

@edvardsanta
Copy link

Hello, i did some changes, what do you think?

image

@edvardsanta edvardsanta linked a pull request Apr 10, 2024 that will close this issue
@milahu
Copy link
Contributor Author

milahu commented Apr 10, 2024

im blinded by the colors ; )

what will you do in the future, when you run out of colors?

i would rather group the templates into lines

vanilla vanilla-ts
vue vue-ts custom-create-vue custom-nuxt
react react-ts ...
preact ...
lit ...

@edvardsanta
Copy link

interesting, thanks for the point. I just added the colors thinking that when we create a new project the templates are shown with colors

@edvardsanta
Copy link

like that?
image

@milahu
Copy link
Contributor Author

milahu commented Apr 11, 2024

yepp. except i would put the -ts versions second

(also, please stop posting screenshots of text...)

@edvardsanta
Copy link

I prefer the version where 'ts' comes first; I'll await feedback in the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants