From c79e56d4a3a41bd2d4b152a27c2334fd9d238fd4 Mon Sep 17 00:00:00 2001 From: Eric Lin Date: Wed, 1 Aug 2018 12:59:36 -0400 Subject: Updated argparse_completer to automatically set the matches_sorted flag for tabular results. Updated the example to demonstrate pre-sorted tabular results. --- cmd2/argparse_completer.py | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd2/argparse_completer.py') diff --git a/cmd2/argparse_completer.py b/cmd2/argparse_completer.py index 60af25de..1479a6bf 100755 --- a/cmd2/argparse_completer.py +++ b/cmd2/argparse_completer.py @@ -492,6 +492,7 @@ class AutoCompleter(object): self._cmd2_app.completion_header = header self._cmd2_app.display_matches = completions_with_desc + self._cmd2_app.matches_sorted = True return completions -- cgit v1.2.1