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
While working on a Salesforce CLI plugin I ran into the following bug regarding deprecated flag warning messages.
Given a flag, foo-bar is added to a command and has an alias, foo and the flag is configured with deprecateAliases: true, when executing the command with --foo the deprecated flag warning message is displayed as expected.
However, when executing the command with --foo-bar the deprecated flag warning message is displayed saying:
Warning: The "--foo" flag has been deprecated. Use "--foo-bar" instead.
To Reproduce
Steps to reproduce the behavior:
Add a flag to a command with configuration as follows:
Warning: The "--foo" flag has been deprecated. Use "--foo-bar" instead.
Expected behavior
Warning should not be displayed when --foo-bar flag is used as the flag is not marked as deprecated, only the alias flag --foo should be considered deprecated.
Environment (please complete the following information):
OS & version: Ubuntu 22.04.5 LTS
Shell/terminal & version zsh 5.8.1 (x86_64-ubuntu-linux-gnu)
Describe the bug
While working on a Salesforce CLI plugin I ran into the following bug regarding deprecated flag warning messages.
Given a flag,
foo-bar
is added to a command and has analias
,foo
and the flag is configured withdeprecateAliases: true
, when executing the command with--foo
the deprecated flag warning message is displayed as expected.However, when executing the command with
--foo-bar
the deprecated flag warning message is displayed saying:To Reproduce
Steps to reproduce the behavior:
--foo-bar
Expected behavior
Warning should not be displayed when
--foo-bar
flag is used as the flag is not marked as deprecated, only the alias flag--foo
should be considered deprecated.Environment (please complete the following information):
package.json
dependenciesAdditional context
Looks like source of problem is related to use of
startsWith
on line 339.core/src/command.ts
Lines 339 to 346 in 7ede2e5
The text was updated successfully, but these errors were encountered: