Message314156
_wants_ is a bit a strong word, but, at least, you can do a bit a nicer job than the default error, like printing a nicely formatted list of subcommands as you would get it with the main parsers help.
In fact, in my own code I'm actually catching the missing subparser situation, then calling parse_args again with ['--help'] :) |
|
Date |
User |
Action |
Args |
2018-03-20 16:54:19 | wolma | set | recipients:
+ wolma, bethard, eric.araujo, memeplex, paul.j3, Anthony Sottile |
2018-03-20 16:54:18 | wolma | set | messageid: <1521564858.98.0.467229070634.issue33109@psf.upfronthosting.co.za> |
2018-03-20 16:54:18 | wolma | link | issue33109 messages |
2018-03-20 16:54:18 | wolma | create | |
|