mirror of
https://github.com/spf13/cobra
synced 2024-11-04 21:07:19 +00:00
Compare commits
1 commit
4e07448e7a
...
eabe4e512a
Author | SHA1 | Date | |
---|---|---|---|
|
eabe4e512a |
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ function __%[1]s_perform_completion
|
||||||
__%[1]s_debug "Starting __%[1]s_perform_completion"
|
__%[1]s_debug "Starting __%[1]s_perform_completion"
|
||||||
|
|
||||||
# Extract all args except the last one
|
# Extract all args except the last one
|
||||||
set -l args (commandline -opc)
|
set -l args (commandline -opc | string escape)
|
||||||
# Extract the last arg and escape it in case it is a space
|
# Extract the last arg and escape it in case it is a space
|
||||||
set -l lastArg (string escape -- (commandline -ct))
|
set -l lastArg (string escape -- (commandline -ct))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue