28 lines
681 B
Java
28 lines
681 B
Java
package jef.main;
|
|
|
|
import java.util.Arrays;
|
|
|
|
public class Main {
|
|
public static void main(String[] args) {
|
|
if (args.length == 0) {
|
|
printHelp();
|
|
System.exit(1);
|
|
}
|
|
switch (args[0].toLowerCase()) {
|
|
case "help":
|
|
printHelp();
|
|
case "migration":
|
|
MigrationCommandHandler.handleMigration(Arrays.copyOfRange(args, 1, args.length));
|
|
|
|
default:
|
|
printHelp();
|
|
}
|
|
}
|
|
|
|
static void printHelp() {
|
|
System.out.println("Usage: java -jar thisfile <command> [options]");
|
|
MigrationCommandHandler.printHelp();
|
|
System.exit(1);
|
|
}
|
|
}
|