Skip to content

Commit cf4d64d

Browse files
committed
Handle multiple exercise ids on download-or-update the same as before
1 parent ea8ba47 commit cf4d64d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tmc-langs-cli/src/app.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ pub enum Core {
286286
#[clap(long)]
287287
download_template: bool,
288288
/// Exercise id of an exercise that should be downloaded. Multiple ids can be given.
289-
#[clap(long, required = true)]
289+
#[clap(long, multiple = true, required = true)]
290290
exercise_id: Vec<u32>,
291291
},
292292

@@ -841,6 +841,12 @@ mod core_test {
841841
"--exercise-id",
842842
"2345",
843843
]);
844+
get_matches_core(&[
845+
"download-or-update-course-exercises",
846+
"--exercise-id",
847+
"1234",
848+
"2345",
849+
]);
844850
}
845851

846852
#[test]

0 commit comments

Comments
 (0)