Skip to content

Commit

Permalink
modify when help text is given
Browse files Browse the repository at this point in the history
  • Loading branch information
ShujianDou committed Jan 15, 2024
1 parent ed48ce7 commit 32e1bf4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/animeDL.nim
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,11 @@ block cmld:
block interactive:
# When Windows, redirect program to cmd
var isWnOpen: bool = false
if paramCount() == 1 and paramStr(1) == "con":
if paramCount() == 1:
if paramStr(1) != "con":
echoHelp()
quit(1)
isWnOpen = true
else:
echoHelp()
quit(1)
when defined(windows):
if isWnOpen:
discard execProcess("cmd $1 con" % [getAppDir() / getAppFilename()])
Expand Down

0 comments on commit 32e1bf4

Please sign in to comment.