Skip to content

Add a guard to the unsubmit command.#200

Merged
Tonkpils merged 1 commit intomasterfrom
unsubmit-guard
Jul 23, 2015
Merged

Add a guard to the unsubmit command.#200
Tonkpils merged 1 commit intomasterfrom
unsubmit-guard

Conversation

@kytrinyx
Copy link
Member

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.

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.
Tonkpils added a commit that referenced this pull request Jul 23, 2015
Add a guard to the unsubmit command.
@Tonkpils Tonkpils merged commit 0048c2b into master Jul 23, 2015
@Tonkpils
Copy link
Contributor

This looks great!

@Tonkpils Tonkpils deleted the unsubmit-guard branch July 23, 2015 02:57
@kytrinyx
Copy link
Member Author

Thanks, @Tonkpils!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants