command line interface framework guaka example https://github.com/oarrabi/Guaka
run swift build
after you bild the CLI named foobar you can try it out
.build/debug/foobar --help
.build/debug/foobar --version
.build/debug/foobar --v
.build/debug/foobar checkout
.build/debug/foobar checkout "swifty"