piranha/opster — pull request #49 by oscarbenjamin (2012-06-21 10:54:52+00:00)
Title: Fix varargs handling when main is called directly

This is a patch for GH-48.

This patch fixes ```call_cmd_regular``` to work with varargs when the varargs parameter is placed after the option list, so that this script:

@opster()
def main(arg, opt=('o', False, 'option help'), *args):
print 'arg', arg
print 'args', args
print 'opt', opt

main('a', 'b', 'c')

will output:

arg a
args ('b', 'c')
opt False

The patch also adds support for function siw th keyword only arguments in ```call_cmd_regular```.