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

fix: correctly print help when only command found and passed with help #733

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

WillieRuemmele
Copy link
Contributor

@WillieRuemmele WillieRuemmele commented Jul 13, 2023

@W-13753346@
forcedotcom/cli#2301

@mshanemc
Copy link
Member

QA:

✅ sf project create -h
✅ sf project create --help (create is an alias for generate)
✅ sf project generate -h
[error because it's not a real command] sf project generate create -h

💡 it'd be cool if this also ran the "plugin-not-found/did-you-mean" hook. I got it to run, but it was also throwing a TypeError.

 ›   Warning: project generate create is not a sf command.
Did you mean project generate manifest? [y/n]:     TypeError: this.config.runHook(...) is not a function

@mshanemc mshanemc merged commit 3c3b597 into main Jul 18, 2023
@mshanemc mshanemc deleted the wr/commandNotFoundHookHelp branch July 18, 2023 19:17
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.

2 participants