diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-15 23:37:10 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-15 23:37:10 -0400 |
commit | 1820ebe60a4d059b6f016041fe9b401758ae321e (patch) | |
tree | 51e7933c21af8fa5393024f99cdec702feb705a7 /cmd2/argparse_completer.py | |
parent | 94b424e9c41f99c6eb268c6c97f09e99a8342de8 (diff) | |
download | cmd2-git-1820ebe60a4d059b6f016041fe9b401758ae321e.tar.gz |
Renamed matches_sort_key to default_sort_key and using it to sort additional d
Diffstat (limited to 'cmd2/argparse_completer.py')
-rw-r--r-- | cmd2/argparse_completer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/argparse_completer.py b/cmd2/argparse_completer.py index 737286c1..95ccf7b4 100644 --- a/cmd2/argparse_completer.py +++ b/cmd2/argparse_completer.py @@ -391,7 +391,7 @@ class AutoCompleter(object): # If the user has not already sorted the CompletionItems, then sort them before appending the descriptions if not self._cmd2_app.matches_sorted: - completions.sort(key=self._cmd2_app.matches_sort_key) + completions.sort(key=self._cmd2_app.default_sort_key) self._cmd2_app.matches_sorted = True token_width = ansi_safe_wcswidth(action.dest) |