Examples of formatHelpWith()


Examples of joptsimple.OptionParser.formatHelpWith()

                    .withValuesSeparatedBy( pathSeparatorChar );
                nonOptions( "files to chew on" ).ofType( File.class ).describedAs( "input files" );
            }
        };

        parser.formatHelpWith( new MyFormatter() );
        parser.printHelpOn( System.out );
    }
}
View Full Code Here

Examples of joptsimple.OptionParser.formatHelpWith()

    public static void main(String[] args) throws Exception {
        // allow client to choose another network for testing by passing through an argument.
        OptionParser parser = new OptionParser();
        parser.accepts("network").withRequiredArg().withValuesConvertedBy(regex("(mainnet)|(testnet)|(regtest)")).defaultsTo("mainnet");
        parser.accepts("help").forHelp();
        parser.formatHelpWith(new BuiltinHelpFormatter(120, 10));
        OptionSet options;

        try {
            options = parser.parse(args);
        } catch (OptionException e) {
View Full Code Here

Examples of joptsimple.OptionParser.formatHelpWith()

        // allow client to choose another network for testing by passing through an argument.
        OptionParser parser = new OptionParser();
        parser.accepts("network").withRequiredArg().withValuesConvertedBy(regex("(mainnet)|(testnet)|(regtest)")).defaultsTo("mainnet");
        parser.accepts("server").withRequiredArg().required();
        parser.accepts("help").forHelp();
        parser.formatHelpWith(new BuiltinHelpFormatter(120, 10));
        OptionSet options;

        try {
            options = parser.parse(args);
        } catch (OptionException e) {
View Full Code Here

Examples of joptsimple.OptionParser.formatHelpWith()

        parser.accepts("syntax",
            "check the syntax of schema(s) given as argument(s)");
        parser.accepts("fakeroot",
            "pretend that the current directory is absolute URI \"uri\"")
            .withRequiredArg();
        parser.formatHelpWith(HELP);

        final OptionSet optionSet;
        final boolean isSyntax;
        final int requiredArgs;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.