Matt Pr added the comment: Same AssertionError is also caused by having certain "choices".
Python 2.7.10 global_options.add_argument('--field-sep', choices=[',',';','|','\t'], required=True, help='Field separator that separates columns in a row.') Removing required=True or removing the tab (\t) from the options both work around this usage formatter issue for me. I know this is an old issue but figured I would add another repro case to help whoever might work on this. ---------- nosy: +mattpr _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11874> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com