Skip to content

Commit

Permalink
rename scan-exercises back to scan-exercis for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jamo committed Nov 12, 2015
1 parent 06e2588 commit 3901cc7
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public final class Main {
private static final Map<String, Integer> COMMAND_ARGUMENT_COUNTS =
new ImmutableMap.Builder<String, Integer>()
.put("checkstyle", 2)
.put("scan-exercises", 2)
.put("scan-exercise", 2)
.put("run-tests", 2)
.put("prepare-stub", 1)
.put("prepare-solution", 1)
Expand All @@ -62,7 +62,7 @@ public final class Main {
+ " Prepare a stub exercise from the original.\n"
+ " run-tests <exercise path> <output path>"
+ " Run the tests for the exercise.\n"
+ " scan-exercises <exercise path> <output path>"
+ " scan-exercise <exercise path> <output path>"
+ " Produce an exercise description of an exercise directory."
+ " find-exercises <scan path> <output path>"
+ " Produce list of found exercises.";
Expand Down Expand Up @@ -125,8 +125,8 @@ private static void run(String[] args) {
case "checkstyle":
runCheckCodeStyle(paths);
break;
case "scan-exercises":
runScanExercises(paths);
case "scan-exercise":
runScanExercise(paths);
break;
case "find-exercises":
runFindExercises(paths);
Expand Down Expand Up @@ -169,7 +169,7 @@ private static void runCheckCodeStyle(Map<String, Path> paths) {
}
}

private static void runScanExercises(Map<String, Path> paths) {
private static void runScanExercise(Map<String, Path> paths) {
System.out.println(paths);
String exerciseName = paths.get(EXERCISE_PATH).toFile().getName();
Optional<ExerciseDesc> exerciseDesc = Optional.absent();
Expand Down

0 comments on commit 3901cc7

Please sign in to comment.