Skip to content

Johnz86/clicommand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clicommand

Dispatch function decorator for python docopt library

.. code:: python

from clicommand import Cli
from docopt import docopt

.. code:: python

cli = Cli(docopt(__doc__))

Cli takes result of docopt library as mandatory argument:

.. code:: python

@cli.command({'key':function,'key':type,'key':'exactString'})
def normalFunction(arguments):
	print 'matched pattern',arguments

About

Dispatch function decorator for python docopt library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages