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

Command name in help output is wrong. #12154

Closed
ronaldborman opened this issue Feb 27, 2019 · 2 comments
Closed

Command name in help output is wrong. #12154

ronaldborman opened this issue Feb 27, 2019 · 2 comments
Assignees
Labels
type: question or discussion Issue discussing or asking a question about Gatsby

Comments

@ronaldborman
Copy link

ronaldborman commented Feb 27, 2019

Description

When I run 'npx gatsby --help' (as suggested by https://www.gatsbyjs.org/tutorial/part-zero/) the help text displays the wrong command name:

Usage: gatsby.js [options]

Commands:
gatsby.js develop...

When I then install the cli globally the help text output (with or without the use of npx) changes to:

Usage: index.js [options]

Commands:
index.js develop...

Steps to reproduce

run 'npx gatsby --help'
run 'npm install -g gatsby-cli'
run 'gatsby --help'

Expected result

The help text should contain the command name 'gatsby' (without the extension .js).

Actual result

The help text contains the command name 'gatsby.js' (when npx is used) or 'index.js' (after the global installation of gatsby-cli).

Environment

Node 8.9.4, npm 5.10.0, gatsby 2.4.11.

@yogeshkotadiya
Copy link
Contributor

I can't reproduce this, working as expected.
Same as #5838
I'll take a look into this.

@yogeshkotadiya
Copy link
Contributor

Merged in #12186

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question or discussion Issue discussing or asking a question about Gatsby
Projects
None yet
Development

No branches or pull requests

3 participants