Skip to content

Commit

Permalink
Added glue text between the tutorials.
Browse files Browse the repository at this point in the history
  • Loading branch information
epsy committed Feb 19, 2015
1 parent 37d6fae commit 615482d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -348,3 +348,7 @@ one option is to raise an :class:`ArgumentError` from within your function:

If you would like the usage line not to be printed, raise :class:`UserError`
instead.


Next up, we will look at how you can have Clize :ref:`dispatch to multiple
functions<dispatching>` for you.
5 changes: 5 additions & 0 deletions docs/compositing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -225,3 +225,8 @@ names of the composited parameters must not conflict:
Connecting to (('abc', 80, True), ('def', 80, False)) to get /eggs
$ python argdeco.py /eggs -6 abc def --port 8080 cheese
Connecting to (('abc', 80, True), ('def', 80, False), ('cheese', 8080, False)) to get /eggs
Congratulations, you've reached the end of the tutorials! You can check out the
:ref:`parameter reference<parameter-reference>` or see how you can :ref:`extend
the parser<extending parser>`.
6 changes: 5 additions & 1 deletion docs/multicommands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,9 @@ feature.
Sorry I forgot it all :(

Alternatively, you can pass any iterable of functions or a mapping(`dict` or
`collections.OrderedDict`) to `.run` like with :ref:`the alt parameter explained earlier <command-list>`.
`collections.OrderedDict`) to `.run` like with :ref:`the alt parameter
explained earlier <command-list>`.


You'll often need to share a few characteristics between each function. See how
Clize helps you do that in :ref:`function-compositing`.

0 comments on commit 615482d

Please sign in to comment.