Implement completion for remote control commands

This commit is contained in:
Kovid Goyal
2018-08-25 14:51:59 +05:30
parent c51e7d3bde
commit 933cced76c
2 changed files with 34 additions and 11 deletions
+2
View File
@@ -44,6 +44,8 @@ def options_for_cmd(cmd):
func = cmap[cmd]
except KeyError:
return (), alias_map
if not func.options_spec:
return (), alias_map
seq, disabled = parse_option_spec(func.options_spec)
ans = []
for opt in seq: