bwbox/main.nim

16 lines
271 B
Nim

import lib/sandbox
import lib/args
import options
proc main(): int =
let args = parseArgs()
echo args
if args.isNone:
echo "Usage: bwshell --name=sandbox_name --profile=profile <sandbox_cmd>"
return 1
else:
sandboxExec(args.unsafeGet)
quit(main())