Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit f67351a

Browse files
author
mikkomaa
authored
Merge branch 'master' into redo-multi-login-support-aleksi
2 parents 88d3533 + e022120 commit f67351a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main/java/fi/helsinki/cs/tmc/cli/command/DownloadExercisesCommand.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,9 @@ private void printStatistics(Course course, int requestCount, int downloadCount)
152152
if (course.getExercises().isEmpty()) {
153153
io.println("The '" + courseName + "' course doesn't have any exercises.");
154154
} else {
155+
int totalCount = course.getExercises().size();
155156
io.println("The '" + courseName + "' course has "
156-
+ course.getExercises().size() + " exercises");
157+
+ totalCount + " exercises available");
157158

158159
int failedCount = (requestCount - downloadCount);
159160
if (failedCount > 0) {
@@ -166,7 +167,9 @@ private void printStatistics(Course course, int requestCount, int downloadCount)
166167
io.println(" of which "
167168
+ downloadCount + " exercises were downloaded.");
168169
}
169-
io.println("Use -a/--all to download completed exercises as well.");
170+
if (!showAll && totalCount != downloadCount) {
171+
io.println("Use -a/--all to download completed exercises as well.");
172+
}
170173
}
171174
}
172175

0 commit comments

Comments
 (0)