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: throw valid error when missing required params #403

Closed
wants to merge 1 commit into from

Conversation

cristiand391
Copy link
Member

What does this PR do?

This PR brings back the validateFlags logic to source:deploy and source:manifest:create commands.
There's a current bug in oclif that makes sfdx print an invalid error message when using the exactlyOne prop in flags:

sfdx force:source:deploy
ERROR running force:source:deploy:  Exactly one of the following must be provided: m,a,n,i,f,e,s,t

sfdx force:source:manifest:create
ERROR running force:source:manifest:create:  Exactly one of the following must be provided: m,e,t,a,d

I've openen a PR in oclif/core but until it's merged/we migrate to core, this should work.

What issues does this PR fix or reference?

@W-0@

@cristiand391 cristiand391 deleted the cd/fix-error-msg branch February 9, 2022 00: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
1 participant