mirror of
https://github.com/spf13/cobra
synced 2024-09-28 19:06:26 +00:00
Compare commits
2 commits
769d9cd594
...
c3c4fea6df
Author | SHA1 | Date | |
---|---|---|---|
c3c4fea6df | |||
4e07448e7a |
|
@ -45,7 +45,9 @@ function __%[1]s_perform_completion
|
|||
__%[1]s_debug "Starting __%[1]s_perform_completion"
|
||||
|
||||
# Extract all args except the last one
|
||||
set -l args (commandline -opc)
|
||||
set -l args (
|
||||
commandline -xpc 2>/dev/null ||
|
||||
commandline -opc | string escape)
|
||||
# Extract the last arg and escape it in case it is a space
|
||||
set -l lastArg (string escape -- (commandline -ct))
|
||||
|
||||
|
|
Loading…
Reference in a new issue