in src/main/java/com/atlassian/uwc/ui/UWCCommandLineInterface.java [25:64]
public static void main(String args[])
{
PropertyConfigurator.configure("log4j.properties");
//check that we have at least one arg
if (args.length < 1) usage();
if (requestVersion(args)) {
version();
return;
}
else if (requestHelp(args)) {
extendedHelp();
return;
}
//two args for -t or -e
if (args.length < 2) usage();
if (requestConnectionTest(args)) {
testConnection(args[1]);
return;
}
else if (requestExport(args)) {
export(args[1]);
return;
}
//check that we have min three for default (-c)
if (requestConversion(args)) { //specified -c explictly
if (args.length < 3) usage();
else if (args.length > 3) convert(args[1], args[2], args[3]); //using the pagesdir from the commandline
else convert(args[1], args[2], null); //using the pages key from the settings
return;
}
log.debug("Using default operation -c");
//else we didn't specify -c, so we're using the default = conversion
if (args.length < 3) convert(args[0], args[1], null); //using pages key from settings
else convert(args[0], args[1], args[2]); //using pagesdir from commandline
}