You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
for a flag --target-org/-o, if I type -oasdf oclif doesn't throw Error (1): Nonexistent flag as expected, but instead parses it as:
flag: -o
value: asdf
To Reproduce
install Salesforce CLI
run sf project deploy start -oasdf dreamhouse (or any command with short flag+typo):
➜ dreamhouse-lwc git:(main) sf project deploy start -oasdf dreamhouse
Error (1): Parsing --target-org
No authorization information found for asdf.
See more help with --help
long flag names aren't affected by this:
➜ dreamhouse-lwc git:(main) sf project deploy start --target-orgasdf dreamhouse
Error (1): Nonexistent flag: --target-orgasdf
See more help with --help
Expected behavior
shoud get the non-existent flag err if the short flag has a typo
sf version:
@salesforce/cli/2.15.8 darwin-x64 node-v18.17.0
Environment (please complete the following information):
OS & version: macos ventura
Shell/terminal & version: zsh/alacritty
The text was updated successfully, but these errors were encountered:
I'm not sure there's anything we can do to know whether -oasdf is a typo when -o is expecting a value. Also changing it now would be a breaking change. The only thing we could really do is add support for custom flag parsing so that CLIs can change this behavior if they want. But I'm not sure that would be worth the effort.
Describe the bug
for a flag
--target-org/-o
, if I type-oasdf
oclif doesn't throwError (1): Nonexistent flag
as expected, but instead parses it as:To Reproduce
sf project deploy start -oasdf dreamhouse
(or any command with short flag+typo):long flag names aren't affected by this:
Expected behavior
shoud get the non-existent flag err if the short flag has a typo
sf version:
@salesforce/cli/2.15.8 darwin-x64 node-v18.17.0
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: