Closed iffy closed 1 year ago
This has been really bugging me out, just asking for status on this issue please. If it is not gonna get fixed anytime soon, please let me know
Turns out it was easy -- thanks for letting me know it was bugging you.
There's now a .help
field on the ShortCircuit
error object so this should work:
try:
var opts = p.parse()
except ShortCircuit as err:
if err.flag == "argparse_help":
echo err.help
OMG! You are a legend! Thank you so much
Just wanted to say thank you. Before you implemented the change, I had to use this monkey patch 🙈:
if opts.command == "vm":
var vmList = vmList()
else:
echo execCmdEx(os.getAppFilename() & " vm --help")[0].strip
Essentially executing a shell sub-command, and calling --help
on it.