Fix help output

This commit is contained in:
2021-10-16 13:12:39 +02:00
parent 1634321bd2
commit 93d2163ce9
2 changed files with 4 additions and 2 deletions
+4 -1
View File
@@ -38,4 +38,7 @@ proc parseArgs*(): Option[Args] =
if command.len > 0:
args.cmd = some(command)
return some(args)
if args.name.isSome or args.cmd.isSome or args.profile.isSome:
return some(args)
else:
return none(Args)
-1
View File
@@ -5,7 +5,6 @@ import random
proc main(): int =
let args = parseArgs()
echo args
if args.isNone:
echo "Usage: bwshell --name=sandbox_name --profile=profile <sandbox_cmd>"