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

bun init --help unexpectedly proceeds with init prompt #3640

Closed
eyelidlessness opened this issue Jul 15, 2023 · 1 comment
Closed

bun init --help unexpectedly proceeds with init prompt #3640

eyelidlessness opened this issue Jul 15, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@eyelidlessness
Copy link

What version of Bun is running?

0.6.14

What platform is your computer?

Darwin 19.6.0 x86_64 i386

What steps can reproduce the bug?

bun init --help

What is the expected behavior?

If possible, display init command-specific help. If none is specifically available for the command: exit, ideally with a link or some guidance as to where to find documentation.

What do you see instead?

A prompt to enter a project name to initilize:

package name (current directory name):

Additional information

It may be silly to even invoke bun init --help, but what prompted me to try was that many tools with an init command allow an optional third parameter to specify the name of a subdirectory to create (if not present) and perform the init within. Some actually expect the argument, and do confusing things with the current working directory without it. Granted I'm currently just trying this out in a clean parent directory, but I wanted to have a mental model of the behavior before I did anything that would hit the filesystem at/below $CWD.

@eyelidlessness eyelidlessness added the bug Something isn't working label Jul 15, 2023
@Jarred-Sumner
Copy link
Collaborator

Fixed as of Bun v1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants