Flutter-Bounty-Hunters / static_shock

A static site generator for Dart.
MIT License
107 stars 5 forks source link

[CLI] - Improved graceful failure when passing bad arguments to CLI commands (Resolves #84) #100

Closed matthew-carroll closed 5 months ago

matthew-carroll commented 5 months ago

[CLI] - Improved graceful failure when passing bad arguments to CLI commands (Resolves #84)

When a UsageException is thrown for bad argument usage, that exception is now caught, and only the message and usage is printed to the terminal. The stacktrace isn't printed because the user shouldn't see that.