@param args @throws IOException
(String[] args)
| 104 | * @throws IOException |
| 105 | */ |
| 106 | public static void main(String[] args) throws IOException { |
| 107 | List<String> helpCommands = Arrays.asList(new String[]{"-h", "--help", "-H", "/?"}); |
| 108 | |
| 109 | if(args.length == 1 && helpCommands.contains(args[0])){ |
| 110 | printUsage(); |
| 111 | System.exit(0); |
| 112 | } |
| 113 | if(args.length == 1 && args[0].equals("--schema")){ |
| 114 | exportAll(args[0]); |
| 115 | System.exit(0); |
| 116 | } |
| 117 | if(args.length == 1){ |
| 118 | exportAll(args[0]); |
| 119 | System.exit(0); |
| 120 | } |
| 121 | else if(args.length == 2 && args[1].equals("--schema")){ |
| 122 | schema(args[0]); |
| 123 | System.exit(0); |
| 124 | } |
| 125 | else if(args.length == 2){ |
| 126 | export(args[0], args[1]); |
| 127 | System.exit(0); |
| 128 | } |
| 129 | System.err.println("Invalid arguments."); |
| 130 | printUsage(); |
| 131 | System.exit(1); |
| 132 | } |
| 133 | |
| 134 | } |
nothing calls this directly
no test coverage detected