Commits

Lars Yencken  committed 02e7c17

Fixed command-line switch -n, which was broken.

  • Participants
  • Parent commits 1a1b978

Comments (0)

Files changed (1)

File src/main.cpp

         inputFile = argv[1];
         outputFile = argv[2];
     } else if (argc == 5) {
-        inputFile = argv[1];
-        if (strcmp(argv[2], "-n") != 0) {
+        if (strcmp(argv[1], "-n") != 0) {
+            cout << "unknown flag " << argv[1] << endl;
             usage();
         }
-        n = atoi(argv[3]);
+        n = atoi(argv[2]);
+        inputFile = argv[3];
         outputFile = argv[4];
     } else {
         usage();