Skip to content

Commit

Permalink
Fix completion for Fire(fn) (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
wchliao authored Dec 9, 2022
1 parent 7b5d4f7 commit b2415b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fire/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,11 @@ def _GetOptsAssignmentTemplate(command):
return opts_assignment_subcommand_template

lines = []
for command in set(subcommands_map.keys()).union(set(options_map.keys())):
commands_set = set()
commands_set.add(name)
commands_set = commands_set.union(set(subcommands_map.keys()))
commands_set = commands_set.union(set(options_map.keys()))
for command in commands_set:
opts_assignment = _GetOptsAssignmentTemplate(command).format(
options=' '.join(
sorted(options_map[command].union(subcommands_map[command]))
Expand Down

0 comments on commit b2415b9

Please sign in to comment.