Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
CompletionsCommand - use cmd.name directly for fish completion -a arg…
…ument
  • Loading branch information
MatteoCampinoti94 committed Oct 16, 2022
commit 4376dd0cd0824a1b100f0ea4e5ef756c5bf73c4c
2 changes: 1 addition & 1 deletion src/cleo/commands/completions_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def sanitize(s: str) -> str:
command_name = shell_quote(cmd.name) if " " in cmd.name else cmd.name
cmds.append(
f"complete -c {script_name} -f -n '__fish{function}_no_subcommand' "
f"-a '{command_name}' -d '{sanitize(cmd.description)}'"
f"-a '{cmd.name}' -d '{sanitize(cmd.description)}'"
)
cmds_opts += [
f"# {command_name}",
Expand Down