private static Options createOptions()

in markbook/src/main/java/org/apache/hadoop/gateway/markbook/MarkBook.java [169:198]


  private static Options createOptions() {
    Options options = new Options();

    Option help = OptionBuilder
        .withArgName( "help" )
        .withLongOpt( "help" )
        .withDescription( "Prints this help." )
        .create( "h" );

    Option input = OptionBuilder
        .withArgName( "input" )
        .withLongOpt( "input" )
        .hasArg()
        .withDescription( "Repeat for each Markdown input file name." )
        .create( "i" );

    Option output = OptionBuilder
        .withArgName( "output" )
        .withLongOpt( "output" )
        .hasArgs( 1 )
        //.isRequired()
        .withDescription( "A single output HTML file name." )
        .create( "o" );

    options.addOption( input );
    options.addOption( output );
    options.addOption( help );

    return options;
  }