Fix help output

This commit is contained in:
Martin 2021-10-16 13:12:39 +02:00
parent 1634321bd2
commit 93d2163ce9
Signed by: mawalu
GPG Key ID: BF556F989760A7C8
2 changed files with 4 additions and 2 deletions

View File

@ -38,4 +38,7 @@ proc parseArgs*(): Option[Args] =
if command.len > 0:
args.cmd = some(command)
if args.name.isSome or args.cmd.isSome or args.profile.isSome:
return some(args)
else:
return none(Args)

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>"