From 96275b49295d93e9801d7e93e9ad6b873019c13c Mon Sep 17 00:00:00 2001 From: Kuoi Date: Mon, 17 Jul 2023 06:50:26 +0800 Subject: [PATCH] fix: add exit --- tnt2winclada.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tnt2winclada.cpp b/tnt2winclada.cpp index 469aa02..a11e0ba 100644 --- a/tnt2winclada.cpp +++ b/tnt2winclada.cpp @@ -32,8 +32,8 @@ void interactive_commands() "help\ninput " "\tinput a TNT output tree from the " "specified file\noutput \toutput a " - "winclada accessable tree file\nquit\t\t\texit " - "the program" + "winclada accessable tree file\nquit\t\t\tquit " + "the program\nexit\t\t\texit the program" << endl; } else if (command.find("input ") == 0) { @@ -87,7 +87,7 @@ void interactive_commands() cout << "tnt2winclada> Finished." << endl; } } - else if (command == "quit") { + else if (command == "quit" || command == "exit") { break; } else {