印刷中のサブコマンドの選択を中止するにはどうしたらいいですか? http://docs.python.org/dev/library/argparse.html#sub-commandsで例を使用して、通常の出力は次のとおりです。Pythonのargparseモジュールで、中括弧でサブコマンドの選択肢を印刷しないようにするにはどうしたらいいですか?
usage: [-h] {foo,bar} ...
optional arguments:
-h, --help show this help message and exit
subcommands:
はちょうど最後の行を削除:
usage: [-h] {foo,bar} ...
optional arguments:
-h, --help show this help message and exit
subcommands:
{foo,bar} additional help
私が欲しいものは、これを印刷することです。