<s> from sigtools . modifiers import autokwoargs <EOL> from sigtools . wrappers import wrapper_decorator <EOL> from clize import run <EOL> @ wrapper_decorator <EOL> @ autokwoargs <EOL> def with_uppercase ( wrapped , uppercase = False , * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> ret = wrapped ( * args , ** kwargs ) <EOL> if uppercase : <EOL> return str ( ret ) . upper ( ) <EOL> else : <EOL> return ret <EOL> @ with_uppercase <EOL> def hello_world ( name = None ) : <EOL> """<STR_LIT>""" <EOL> if name is not None : <EOL> return '<STR_LIT>' + name <EOL> else : <EOL> return '<STR_LIT>' <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> run ( hello_world ) </s>
