options.addOption("m2compatible", false, "use maven2 compatibility");
    private static Options getOptions() {        Option conf = OptionBuilder.withArgName( "conffile" )            .hasArg()            .withDescription(  "use given file for configuration" )            .create( "conf" );        Option cache = OptionBuilder.withArgName( "cachedir" )            .hasArg()            .withDescription(  "use given directory for cache" )            .create( "cache" );        Option ivyfile = OptionBuilder.withArgName( "ivyfile" )            .hasArg()            .withDescription(  "use given file as ivy file" )            .create( "ivy" );        Option dependency = OptionBuilder.withArgName( "organisation module revision" )            .hasArgs()            .withDescription(  "use this instead of ivy file to do the rest of the work with this as a dependency." )            .create( "dependency" );        Option confs = OptionBuilder.withArgName( "configurations" )            .hasArgs()            .withDescription(  "resolve given configurations" )            .create( "confs" );        Option retrieve = OptionBuilder.withArgName( "retrievepattern" )            .hasArg()            .withDescription(  "use given pattern as retrieve pattern" )            .create( "retrieve" );        Option cachepath = OptionBuilder.withArgName( "cachepathfile" )            .hasArg()            .withDescription(  "outputs a classpath consisting of all dependencies in cache (including transitive ones) of the given ivy file to the given cachepathfile" )            .create( "cachepath" );        Option revision = OptionBuilder.withArgName( "revision" )            .hasArg()            .withDescription(  "use given revision to publish the module" )            .create( "revision" );        Option status = OptionBuilder.withArgName( "status" )            .hasArg()            .withDescription(  "use given status to publish the module" )            .create( "status" );        Option deliver = OptionBuilder.withArgName( "ivypattern" )            .hasArg()            .withDescription(  "use given pattern as resolved ivy file pattern" )            .create( "deliverto" );        Option publishResolver = OptionBuilder.withArgName( "resolvername" )            .hasArg()            .withDescription(  "use given resolver to publish to" )            .create( "publish" );        Option publishPattern = OptionBuilder.withArgName( "artpattern" )            .hasArg()            .withDescription(  "use given pattern to find artifacts to publish" )            .create( "publishpattern" );        Option realm = OptionBuilder.withArgName( "realm" )            .hasArg()            .withDescription(  "use given realm for HTTP AUTH" )            .create( "realm" );        Option host = OptionBuilder.withArgName( "host" )            .hasArg()            .withDescription(  "use given host for HTTP AUTH" )            .create( "host" );        Option username = OptionBuilder.withArgName( "username" )            .hasArg()            .withDescription(  "use given username for HTTP AUTH" )            .create( "username" );        Option passwd = OptionBuilder.withArgName( "passwd" )            .hasArg()            .withDescription(  "use given password for HTTP AUTH" )            .create( "passwd" );                Options options = new Options();        options.addOption("debug", false, "set message level to debug");        options.addOption("verbose", false, "set message level to verbose");        options.addOption("warn", false, "set message level to warn");        options.addOption("error", false, "set message level to error");        options.addOption("novalidate", false, "do not validate ivy files against xsd");        options.addOption("?", false, "display this help");        options.addOption(conf);        options.addOption(confs);        options.addOption(cache);        options.addOption(ivyfile);        options.addOption(dependency);        options.addOption(retrieve);        options.addOption(cachepath);        options.addOption(revision);        options.addOption(status);        options.addOption(deliver);        options.addOption(publishResolver);        options.addOption(publishPattern);        options.addOption(realm);        options.addOption(host);        options.addOption(username);        options.addOption(passwd);                return options;    }