You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -171,16 +171,18 @@ Instructions for implementing each feature follow.
171
171
- And also provide help hints for values associated with these flags
172
172
- Experiment with the [argprint.py](https://github.com/python-cmd2/cmd2/blob/master/examples/arg_print.py) example
173
173
using the **oprint**and**pprint** commands to get a feel for how this works
174
+
-`basic_complete` helper method for tab completion against a list
174
175
-`path_complete` helper method provides flexible tab completion of file system paths
175
176
- See the [paged_output.py](https://github.com/python-cmd2/cmd2/blob/master/examples/paged_output.py) example for a simple use case
176
177
- See the [python_scripting.py](https://github.com/python-cmd2/cmd2/blob/master/examples/python_scripting.py) example for a more full-featured use case
177
-
-`flag_based_complete` helper method for tab completion based on a particular flag preceding the token being completed
178
-
- See the [basic_completion.py](https://github.com/python-cmd2/cmd2/blob/master/examples/basic_completion.py) example for a demonstration of how to use this feature
179
-
-`index_based_complete` helper method for tab completion based on a fixed position in the input string
180
-
- See the [basic_completion.py](https://github.com/python-cmd2/cmd2/blob/master/examples/basic_completion.py) example for a demonstration of how to use this feature
181
-
-`basic_complete` helper method for tab completion against a list
182
178
-`delimiter_complete` helper method for tab completion against a list but each match is split on a delimiter
183
179
- See the [basic_completion.py](https://github.com/python-cmd2/cmd2/blob/master/examples/basic_completion.py) example for a demonstration of how to use this feature
180
+
-`flag_based_complete` helper method for tab completion based on a particular flag preceding the token being completed
181
+
-`index_based_complete` helper method for tab completion based on a fixed position in the input string
182
+
- See the [basic_completion.py](https://github.com/python-cmd2/cmd2/blob/master/examples/basic_completion.py) example for a demonstration of how to use these features
183
+
-`flag_based_complete()`and`index_based_complete()` are basic methods and should only be used if you are not
184
+
familiar with argparse. The recommended approach for tab completing positional tokens and flags is to use
185
+
argparse-based completion
184
186
-`cmd2`in combination with`argparse` also provide several advanced capabilities for automatic tab completion
185
187
- See the [argparse_completion.py](https://github.com/python-cmd2/cmd2/blob/master/examples/argparse_completion.py) example for more info
0 commit comments