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
130
130
manually you'll need to remove ``locals_in_py `` from the ``settable `` dictionary.
131
131
132
132
The ``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>") ``.
137
135
138
136
::
139
137
140
138
>>> app('say --piglatin Blah')
141
139
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
-
156
140
157
141
More Python examples:
158
142
You can’t perform that action at this time.
0 commit comments