Add examples for CLI commands
Add --exit-code
Add runApp()