Allow main(String[]) to be an instance method

This way commands can extend a base class, which provides a standard
main implementation, such as to launch a command line parser and then
invoke the real logic from some other method.

Optionally, main may now return a numeric value, which becomes the
JVM's exit code.

Signed-off-by: Shawn O. Pearce <sop@google.com>
2 files changed
tree: 354e11991d946849d0c75818d5c67049a23b44ef
  1. .settings/
  2. src/
  3. .gitignore
  4. COPYING
  5. pom.xml
  6. README