mirror of
https://gitlab.com/arnekeller/kit-programmieren-ws1920-final1.git
synced 2024-11-24 09:24:58 +00:00
Skip comments instead of exiting
This commit is contained in:
parent
9aa8cc2384
commit
07bc781c3d
@ -23,9 +23,12 @@ public class CommandLine {
|
|||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
final String input = Terminal.readLine();
|
final String input = Terminal.readLine();
|
||||||
if (input == null || input.startsWith("#")) {
|
if (input == null) {
|
||||||
break; // TODO remove
|
break; // TODO remove
|
||||||
}
|
}
|
||||||
|
if (input.startsWith('#')) {
|
||||||
|
continue; // TODO remove
|
||||||
|
}
|
||||||
|
|
||||||
if (input.equals(EXIT)) {
|
if (input.equals(EXIT)) {
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user