simple example of usage for subcommands
authorAlexander Solovyov <piranha@piranha.org.ua>
Mon, 13 Jul 2009 18:56:11 +0300
changeset 37 f61f1bbbf47d
parent 36 0cb832d5f1a9
child 38 d64102e06c34
simple example of usage for subcommands
docs/overview.rst
--- a/docs/overview.rst	Mon Jul 13 18:54:38 2009 +0300
+++ b/docs/overview.rst	Mon Jul 13 18:56:11 2009 +0300
@@ -107,6 +107,10 @@
   if __name__ == '__main__':
       dispatch(cmdtable=cmdtable)
 
+Example usage, calling ``complex_`` with 5 as argument for ``exit`` option::
+
+  app har --ex 5
+
 But if your program is something like program shown earlier, you can use
 shortened api::