Commit 6c52599
committed
Add a guard to the unsubmit command.
The unsubmit command does not take any arguments, but it would be
easy to assume that it does, considering how most of the other commands
work.
This changes the command so that it stops with a warning if someone
tries to pass an argument.
This change is in response to exercism/exercism#2446
where someone tried unsubmitting a submission by passing the file path
to the unsubmit command, which blithely unsubmitted the most recent
submission--period.
It's confusing and unfriendly.1 parent c802c91 commit 6c52599
3 files changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
| 12 | + | |
15 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
0 commit comments