Fix help output
This commit is contained in:
parent
1634321bd2
commit
93d2163ce9
|
@ -38,4 +38,7 @@ proc parseArgs*(): Option[Args] =
|
||||||
if command.len > 0:
|
if command.len > 0:
|
||||||
args.cmd = some(command)
|
args.cmd = some(command)
|
||||||
|
|
||||||
|
if args.name.isSome or args.cmd.isSome or args.profile.isSome:
|
||||||
return some(args)
|
return some(args)
|
||||||
|
else:
|
||||||
|
return none(Args)
|
||||||
|
|
1
main.nim
1
main.nim
|
@ -5,7 +5,6 @@ import random
|
||||||
|
|
||||||
proc main(): int =
|
proc main(): int =
|
||||||
let args = parseArgs()
|
let args = parseArgs()
|
||||||
echo args
|
|
||||||
|
|
||||||
if args.isNone:
|
if args.isNone:
|
||||||
echo "Usage: bwshell --name=sandbox_name --profile=profile <sandbox_cmd>"
|
echo "Usage: bwshell --name=sandbox_name --profile=profile <sandbox_cmd>"
|
||||||
|
|
Loading…
Reference in New Issue