Main: Replace deprecated ExampleMode with OptionHandlerFilter

Change-Id: I1161a82269b7f093c00c9533ed8b99b7cca0a322
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
This commit is contained in:
David Pursehouse 2017-09-05 16:43:23 +09:00 committed by Matthias Sohn
parent d6aec5da31
commit 41bfc20a2c
1 changed files with 3 additions and 2 deletions

View File

@ -77,8 +77,8 @@
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 @@ private void execute(final String[] argv) throws Exception {
}
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();