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
[SFW-80] bug: provided a subcommand group is configured with a default match and the command is ran with only the name of the subcommand the default match doesn't get executed.
#464
favna
changed the title
bug: provided a subcommand group is configured with a default match and the command is ran with only the name of the subcommand the default match doesn't get executed.
[SFW-80] bug: provided a subcommand group is configured with a default match and the command is ran with only the name of the subcommand the default match doesn't get executed.
Aug 12, 2023
Is there an existing issue for this?
Description of the bug
Provided the following subcommand array:
The expected behaviour is that running
!command config
would executeshow
as that is the configured default.Currently however an error is thrown due to
subcommandName.isSome()
returning false here:plugins/packages/subcommands/src/lib/Subcommand.ts
Line 153 in 79d7230
Steps To Reproduce
!sg config
show
subcommand does not get executed and instead amessageSubcommandNoMatch
error is thrown.Expected behavior
The default subcommand within the subcommand group executes as described
Screenshots
No response
Additional context
No response
SFW-80
The text was updated successfully, but these errors were encountered: