Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/a/r/argh-HEAD/test/test_integration.py   argh(Download)
    assert run(p, '') == R(out='1\n', err='')
    assert run(p, '--foo 2') == R(out='2\n', err='')
    assert 'bar' in p.format_help()
 
 
    p = DebugArghParser('PROG')
    p.set_default_command(gumby)
    help_msg = p.format_help()
 
    assert 'a moose once bit my sister' in help_msg

src/a/r/argh-0.24.1/test/test_integration.py   argh(Download)
    assert run(p, '') == R(out='1\n', err='')
    assert run(p, '--foo 2') == R(out='2\n', err='')
    assert 'bar' in p.format_help()
 
 
    p = DebugArghParser('PROG')
    p.set_default_command(gumby)
    help_msg = p.format_help()
 
    assert 'a moose once bit my sister' in help_msg