neithere/argh — pull request #59 by invl (2014-02-20 13:40:46+00:00)
Title: Add dispatching.EntryPoint

Use case:

from argh import EntryPoint

entrypoint = EntryPoint()

@entrypoint
def ls():
for i in range(10):
print i

@entrypoint
def greet():
print 'hello'

if __name__ == '__main__':
entrypoint()