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: show options when required flag or arg is not given a value #1017

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

mdonnalley
Copy link
Contributor

Fixes #1014
@W-15263147@

@cristiand391
Copy link
Member

QA:

flags:

➜  sf-plugin-api git:(main) ./bin/dev.js org api asdf -o gs0 --method
Error (2): Flag --method expects one of these values: GET, POST, PUT, PATCH, HEAD, DELETE, OPTIONS, TRACE

➜  sf-plugin-api git:(main) sf org api asdf -o gs0 --method
Error (1): Flag --method expects a value

args:

➜  plugin-autocomplete git:(main) ✗ ./bin/dev.js autocomplete
Error: Missing 1 required arg:
shell  Shell type
See more help with --help

➜  plugin-autocomplete git:(main) ✗ ./bin/dev.js autocomplete
Error: Missing 1 required arg:
shell  (zsh|bash|powershell) Shell type
See more help with --help

@cristiand391 cristiand391 merged commit 003ad6f into main Mar 19, 2024
80 checks passed
@cristiand391 cristiand391 deleted the mdonnalley/show-options branch March 19, 2024 13:27
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.

(help): show arg/flag options if user didn't provide any
2 participants