Skip to content

Commit d4b967d

Browse files
committed
Show argument names in completion list.
1 parent 54ca6a1 commit d4b967d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bpython/cli.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,10 @@ def _complete(self, tab=False):
827827
else:
828828
matches = self.completer.matches
829829

830+
if not e and self.argspec:
831+
matches.extend(name + '=' for name in self.argspec[1][0]
832+
if name.startswith(cw))
833+
830834
if e or not matches:
831835
self.matches = []
832836
self.matches_iter.update()

0 commit comments

Comments
 (0)