diff options
Diffstat (limited to 'src/esieequest/controller/commands/QuitCommand.java')
-rw-r--r-- | src/esieequest/controller/commands/QuitCommand.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/esieequest/controller/commands/QuitCommand.java b/src/esieequest/controller/commands/QuitCommand.java index 024b35f..ebcd630 100644 --- a/src/esieequest/controller/commands/QuitCommand.java +++ b/src/esieequest/controller/commands/QuitCommand.java | |||
@@ -14,6 +14,11 @@ public class QuitCommand implements Executable { | |||
14 | @Override | 14 | @Override |
15 | public void execute(final String argument, final Game game, final Viewable view) { | 15 | public void execute(final String argument, final Game game, final Viewable view) { |
16 | 16 | ||
17 | if (!argument.isEmpty()) { | ||
18 | view.echo(Text.TOO_MANY_ARGUMENTS.toString()); | ||
19 | return; | ||
20 | } | ||
21 | |||
17 | view.echo(Text.QUIT.toString()); | 22 | view.echo(Text.QUIT.toString()); |
18 | view.disableInput(); | 23 | view.disableInput(); |
19 | view.stopMusic(); | 24 | view.stopMusic(); |