particle-iot / particle-cli

Command Line Interface for Particle Cloud and devices
Apache License 2.0
212 stars 92 forks source link

fix: [sc-122790] Invalid commands are not failing properly #741

Closed monkbroc closed 3 months ago

monkbroc commented 3 months ago

Story details: https://app.shortcut.com/particle/story/122790

In case a multi-word command doesn't exist but one of the words exist like particle tokens list, the command processor would return no command and no error so the output would be blank. With this simple fix, it will say No such command 'tokens list' but show the help for particle list. It's not a perfect fix, but it's better than the current situation.