commit | 4bca2c4d02556f3e44ffe957cf2efea756a3a99d | [log] [tgz] |
---|---|---|
author | Shawn O. Pearce <sop@google.com> | Mon Jun 08 08:03:57 2009 -0700 |
committer | Shawn O. Pearce <sop@google.com> | Mon Jun 08 08:03:57 2009 -0700 |
tree | 354e11991d946849d0c75818d5c67049a23b44ef | |
parent | a4abd898238415c0e0d3bf19d7b2560711c7b44a [diff] |
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>