Skip to content

Commit ea06680

Browse files
Fix bug where -h argument wouldn't work when accessing ZeeTerminal from a commandline
1 parent b6ca5e5 commit ea06680

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ZeeTerminal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ int main(int argc, char* argv[])
125125
bRunCommandLoopOnce = true; // One command from argument will end the terminal operation
126126

127127
}
128-
else if (sArgv[1] == "ZeeTerminalCore.h" || sArgv[1] == "--help") {
128+
else if (sArgv[1] == "-h" || sArgv[1] == "--help") {
129129
// Output help message for user
130130
std::cout << "___ZeeTerminal Help___\n\n__Syntax__:\nFor running a script: ZeeTerminal.exe <script filepath>\nFor running a singular command: ZeeTerminal.exe -c <command>\n\n"
131131
<< "If you would like to run a script OR command where either contains space characters, use quotation marks (\"\").\n --> For example: ZeeTerminal.exe \"C:\\Users\\Public\\A Test Script.txt\"\n\n"

0 commit comments

Comments
 (0)