Convert jgit's Main to use args4j for basic parsing services
commit89434e2a23214e8acfbe9f920ccb74ca247d8209
authorShawn O. Pearce <spearce@spearce.org>
Fri, 18 Jul 2008 01:44:09 +0000 (17 21:44 -0400)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Wed, 23 Jul 2008 19:52:08 +0000 (23 21:52 +0200)
tree23aae0eb00d4dbb702c4e6bb54ad155a0b5cadb4
parent5c69ee9381441c3db63c278f6c713fc786f3bfbe
Convert jgit's Main to use args4j for basic parsing services

We now use args4j for our global options parsing and for the
subcommand selection.  The remaining arguments that are left
over after the subcommand are sent to the subcommand unmodified.
An additional CmdLineParser could be created by the subcommand to
handle its own argument parsing over the remaining options.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit.pgm/src/org/spearce/jgit/pgm/Main.java
org.spearce.jgit.pgm/src/org/spearce/jgit/pgm/TextBuiltin.java
org.spearce.jgit.pgm/src/org/spearce/jgit/pgm/opt/SubcommandHandler.java [new file with mode: 0644]