File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 33"""
44A simple example demonstrating how to enable tab completion by assigning a completer function to do_* commands.
55This also demonstrates capabilities of the following completer methods included with cmd2:
6- - flag_based_complete
7- - index_based_complete
86- delimiter_completer
7+ - flag_based_complete (see note below)
8+ - index_based_complete (see note below)
99
10- For an example integrating tab completion with argparse, see argparse_completion.py
10+ flag_based_complete() and index_based_complete() are basic methods and should only be used if you are not
11+ familiar with argparse. The recommended approach for tab completing positional tokens and flags is to use
12+ argparse-based completion. For an example integrating tab completion with argparse, see argparse_completion.py
1113"""
12- import functools
13-
1414import cmd2
1515
1616# List of strings used with completion functions
You can’t perform that action at this time.
0 commit comments