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

Handle non existant commands when passed by the user with help flag #269

Merged
merged 4 commits into from
Nov 4, 2018

Conversation

JamesLMilner
Copy link
Contributor

Type: bug

The following has been addressed in the PR:

Description:

I had a first go at this with #267 but after speaking with @agubler felt it was better to display the actual full help with a notification that the command where help is being requested does not exist.

Resolves #266

@JamesLMilner JamesLMilner changed the title Handle non existant commands when passed by the user Handle non existant commands when passed by the user with help flag Oct 29, 2018
return `${formatHeader()}

${chalk.bold(
chalk.red(`Specified command '`) +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would use " instead of backticks here. I had to do a double-take to figure out what was going on.

${chalk.bold(
chalk.red(`Specified command '`) +
chalk.redBright(fullCommand) +
chalk.red(`' does not exist, please see available commands below.`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would do the same thing with the backticks here.

@JamesLMilner JamesLMilner merged commit 7bc4d0f into dojo:master Nov 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants