File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed
Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -130,29 +130,13 @@ debugging your application. To prevent users from enabling this ability
130130manually you'll need to remove ``locals_in_py `` from the ``settable `` dictionary.
131131
132132The ``app `` object (or your custom name) provides access to application commands
133- through either raw commands or through a python API wrapper. For example, any
134- application command call be called with ``app("<command>") ``. All application
135- commands are accessible as python objects and functions matching the command
136- name. For example, the following are equivalent:
133+ through raw commands. For example, any application command call be called with
134+ ``app("<command>") ``.
137135
138136::
139137
140138 >>> app('say --piglatin Blah')
141139 lahBay
142- >>> app.say("Blah", piglatin=True)
143- lahBay
144-
145-
146- Sub-commands are also supported. The following pairs are equivalent:
147-
148- ::
149-
150- >>> app('command subcmd1 subcmd2 param1 --myflag --otherflag 3')
151- >>> app.command.subcmd1.subcmd2('param1', myflag=True, otherflag=3)
152-
153- >>> app('command subcmd1 param1 subcmd2 param2 --myflag --otherflag 3')
154- >>> app.command.subcmd1('param1').subcmd2('param2', myflag=True, otherflag=3)
155-
156140
157141More Python examples:
158142
You can’t perform that action at this time.
0 commit comments