diff options
Diffstat (limited to 'plac/doc/test_plac.py')
-rw-r--r-- | plac/doc/test_plac.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plac/doc/test_plac.py b/plac/doc/test_plac.py index df6c060..dda456b 100644 --- a/plac/doc/test_plac.py +++ b/plac/doc/test_plac.py @@ -179,6 +179,11 @@ def test_cmd_abbrevs(): assert ['help', 'foo'] == plac.call(cmds, ['h', 'foo']) expect(SystemExit, plac.call, cmds, ['foo']) +def test_sub_help(): + c = Cmds() + c.add_help = True + expect(SystemExit, plac.call, c, ['commit', '-h']) + def test_yield(): def main(): for i in (1, 2, 3): |