jakeheis / SwiftCLI

A powerful framework for developing CLIs in Swift
MIT License
861 stars 72 forks source link

Add @discardableresult #96

Closed MatrixSenpai closed 4 years ago

MatrixSenpai commented 4 years ago

Swift's @discardableresult feature is useful for silencing compiler warnings when the result of go() or go(with:) is unused. This also surpresses the need to use _ = cli.go() and is the more "Swifty" way of doing things

MatrixSenpai commented 4 years ago

Pinging @jakeheis

jakeheis commented 4 years ago

If you can remove the committed .swiftpm files, I'll go ahead and merge this!

MatrixSenpai commented 4 years ago

@jakeheis done as requested

jakeheis commented 4 years ago

Looks good, thanks for the contribution!