MCPcopy Index your code
hub / github.com/AccelerationNet/access2csv / main

Method main

src/access2csv/Driver.java:106–132  ·  view source on GitHub ↗

@param args @throws IOException

(String[] args)

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 4

printUsageMethod · 0.95
exportAllMethod · 0.95
schemaMethod · 0.95
exportMethod · 0.95

Tested by

no test coverage detected