This abstract class takes a Command[Unit] and turns it into a main method for your application.
Normally, you want to extend this class from a top-level object:
object MyApp extends CommandApp(
name = "my-app",
header = "This is a standalone application!",
Opts.flag("fantastic", "Everything is working.")
This should now behave like any other object with a main method -- for example, on the JVM, this
could be invoked as java myapp.MyApp --fantastic.
java myapp.MyApp --fantastic
(Since version 0.3.0)
The CommandApp.main method is not intended to be called by user code.
For suggested usage, see: http://monovore.com/decline/usage.html#defining-an-application