From 19312f442be58590f4373e2455c4ee14e3397174 Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Thu, 13 Feb 2020 16:43:23 -0500 Subject: Updated documentation --- examples/basic_completion.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/basic_completion.py') diff --git a/examples/basic_completion.py b/examples/basic_completion.py index f21f75fc..615f949d 100755 --- a/examples/basic_completion.py +++ b/examples/basic_completion.py @@ -3,14 +3,14 @@ """ A simple example demonstrating how to enable tab completion by assigning a completer function to do_* commands. This also demonstrates capabilities of the following completer methods included with cmd2: -- flag_based_complete -- index_based_complete - delimiter_completer +- flag_based_complete (see note below) +- index_based_complete (see note below) -For an example integrating tab completion with argparse, see argparse_completion.py +flag_based_complete() and index_based_complete() are basic methods and should only be used if you are not +familiar with argparse. The recommended approach for tab completing positional tokens and flags is to use +argparse-based completion. For an example integrating tab completion with argparse, see argparse_completion.py """ -import functools - import cmd2 # List of strings used with completion functions -- cgit v1.2.1