OSDN Git Service

add chlist output option.
[rec10/rec10-git.git] / jTsSplitter / trunk / src / jtssplitter / Main.java
index 9df4985..dc9293d 100644 (file)
@@ -28,16 +28,17 @@ public class Main {
             System.out.println(((Integer)i).toString()+":"+args[i]);
         }
         if (args.length > 1) {
-            inf = args[0];
-            outf = args[1];
-            if (args.length > 2) {
-                ch = Integer.parseInt(args[2].trim(), 10);
-            }
             if (args[0].trim().toUpperCase().equals("-ch".toUpperCase())){
                 Chlist chl=new Chlist();
                 chl.writeCHList(args[1], args[2]);
                 System.exit(0);
             }
+
+            inf = args[0];
+            outf = args[1];
+            if (args.length > 2) {
+                ch = Integer.parseInt(args[2].trim(), 10);
+            }
         }
         Tsfile t1 = new Tsfile();
         File f=new File(inf);