keleshev / docopt-dispatch

Dispatch from command-line arguments to functions
MIT License
20 stars 2 forks source link

Fix example in readme #1

Closed wiggin15 closed 9 years ago

wiggin15 commented 9 years ago

The example in README.rst has a bug: the doc uses the keyword 'remote' but the dispatch uses 'items':

run.py remote add <item>
run.py remote delete <item>

vs:

@dispatch.on('items', 'add')
...
@dispatch.on('items', 'delete')
keleshev commented 9 years ago

Thanks for pointing out. Pull-requests are welcome.