static

in src/main/java/org/apache/maven/doxia/cli/CLIManager.java [84:138]


    static {
        OPTIONS = new Options();

        OPTIONS.addOption(Option.builder(HELP)
                .longOpt("help")
                .desc("Display help information.")
                .build());
        OPTIONS.addOption(Option.builder(VERSION)
                .longOpt("version")
                .desc("Display version information.")
                .build());
        OPTIONS.addOption(Option.builder(IN)
                .longOpt("input")
                .desc("Input file or directory.")
                .hasArg()
                .build());
        OPTIONS.addOption(Option.builder(REMOVE_IN)
                .longOpt("removeInputAfterConversion")
                .desc("Whether to remove the input file(s) after successful conversion")
                .build());
        OPTIONS.addOption(Option.builder(GIT_MV_INPUT_TO_OUTPUT)
                .desc(
                        "When this flag is set the input file(s) are first moved to the output file(s), then committed and afterwards replaced with conversion result to keep the Git history")
                .build());
        OPTIONS.addOption(Option.builder(OUT)
                .longOpt("output")
                .desc("Output file or directory.")
                .hasArg()
                .build());
        OPTIONS.addOption(Option.builder(FROM)
                .desc("From format. If not specified, try to autodetect it (only works if input is a single file).")
                .hasArg()
                .build());
        OPTIONS.addOption(Option.builder(TO).desc("To format.").hasArg().build());
        OPTIONS.addOption(Option.builder(INENCODING)
                .desc("Input file encoding. If not specified, try to autodetect it.")
                .hasArg()
                .build());
        OPTIONS.addOption(Option.builder(FORMAT)
                .longOpt("format")
                .desc("Format the output (actually only xml based outputs) to be human readable.")
                .build());
        OPTIONS.addOption(Option.builder(OUTENCODING)
                .desc("Output file encoding. If not specified, use the input encoding (or autodetected).")
                .hasArg()
                .build());
        OPTIONS.addOption(Option.builder(DEBUG)
                .longOpt("debug")
                .desc("Produce execution debug output.")
                .build());
        OPTIONS.addOption(Option.builder(ERRORS)
                .longOpt("errors")
                .desc("Produce execution error messages.")
                .build());
    }