puppetlabs/trapperkeeper — pull request #108 by KevinCorcoran (2014-01-09 19:26:25+00:00)
Title: (PE-2415) fix error handling on bad CLI args

Previously, calling 'main' with an invalid CLI arg would cause a nasty
exception to be thrown and logged. This fixes that to print the
banner message about CLI arguments and kill the process.

This results in the following behavior if you run TK with an invalid CLI arg:
```
(main "--foo")

Error(s) occurred while parsing command-line arguments: Unknown option: "--foo"

-d, --debug Turns on debug mode
-b, --bootstrap-config BOOTSTRAP-CONFIG-FILE Path to bootstrap config file
-c, --config CONFIG-PATH Path to .ini file or directory of .ini files to be read and consumed by services
-p, --plugins PLUGINS-DIRECTORY Path to directory plugin .jars
-h, --help Show help

Process finished with exit code 1
```