We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bb52e2 commit af83fdfCopy full SHA for af83fdf
examples/basic_completion.py
@@ -13,6 +13,8 @@
13
14
import functools
15
16
+from prompt_toolkit.shortcuts import CompleteStyle
17
+
18
import cmd2
19
20
# List of strings used with completion functions
@@ -30,8 +32,8 @@
30
32
31
33
34
class BasicCompletion(cmd2.Cmd):
- def __init__(self, *args, **kwargs) -> None:
- super().__init__(*args, **kwargs)
35
+ def __init__(self) -> None:
36
+ super().__init__(complete_style=CompleteStyle.MULTI_COLUMN)
37
38
def do_flag_based(self, statement: cmd2.Statement) -> None:
39
"""Tab completes arguments based on a preceding flag using flag_based_complete
0 commit comments