diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2017-09-05 16:43:23 +0900 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2017-09-06 00:06:33 +0200 |
commit | 41bfc20a2c265062c45847e9742d6f7070ef364a (patch) | |
tree | 07533f00974748264e76863b3759d3763c01e7a3 /org.eclipse.jgit.pgm/src | |
parent | d6aec5da313ee871689b3b5c550afb7f1b166443 (diff) | |
download | jgit-41bfc20a2c265062c45847e9742d6f7070ef364a.tar.gz jgit-41bfc20a2c265062c45847e9742d6f7070ef364a.zip |
Main: Replace deprecated ExampleMode with OptionHandlerFilter
Change-Id: I1161a82269b7f093c00c9533ed8b99b7cca0a322
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.pgm/src')
-rw-r--r-- | org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java index c94ba0bd86..9d44dc08cd 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java @@ -77,8 +77,8 @@ import org.eclipse.jgit.transport.http.apache.HttpClientConnectionFactory; import org.eclipse.jgit.util.CachedAuthenticator; import org.kohsuke.args4j.Argument; import org.kohsuke.args4j.CmdLineException; -import org.kohsuke.args4j.ExampleMode; import org.kohsuke.args4j.Option; +import org.kohsuke.args4j.OptionHandlerFilter; /** Command line entry point. */ public class Main { @@ -231,7 +231,8 @@ public class Main { } if (argv.length == 0 || help) { - final String ex = clp.printExample(ExampleMode.ALL, CLIText.get().resourceBundle()); + final String ex = clp.printExample(OptionHandlerFilter.ALL, + CLIText.get().resourceBundle()); writer.println("jgit" + ex + " command [ARG ...]"); //$NON-NLS-1$ //$NON-NLS-2$ if (help) { writer.println(); |