def expects_obj(func):
setattr(func, ATTR_EXPECTS_NAMESPACE_OBJECT, True)<EOL>return func<EOL>
Marks given function as expecting a namespace object.

Usage::

    @arg('bar')
    @arg('--quux', default=123)
    @expects_obj
    def foo(args):
        yield args.bar, args.quux

This is equivalent to::

    def foo(bar, quux=123):
        yield bar, quux

In most cases you don't need this decorator.