Commit 127cfbff authored by Erik Reider's avatar Erik Reider

Fixed completions not including --skip-system-css and --custom-system-css

parent 68ddfeb3
......@@ -14,6 +14,8 @@ _swaync() {
--version
--style
--config
--skip-system-css
--custom-system-css
)
case $prev in
-s | --style)
......@@ -24,6 +26,10 @@ _swaync() {
_filedir
return
;;
custom-system-css)
_filedir
return
;;
esac
if [[ $cur == --* ]]; then
......
......@@ -3,3 +3,5 @@ complete -c swaync -s h -l help --description "Show help options"
complete -c swaync -s v -l version --description "Prints version"
complete -c swaync -s s -l style --description "Use a custom Stylesheet file" -r
complete -c swaync -s c -l config --description "Use a custom config file" -r
complete -c swaync -l skip-system-css --description "Skip trying to parse the packaged Stylesheet file. Useful for CSS debugging"
complete -c swaync -l custom-system-css --description "Pick a custom CSS file to use as the \"system\" CSS. Useful for CSS debugging" -r
......@@ -5,3 +5,5 @@ _arguments -s \
'(-v --version)'{-v,--version}'[Prints version]' \
'(-s --style)'{-s,--style}'[Use a custom Stylesheet file]:files:_files' \
'(-c --config)'{-c,--config}'[Use a custom config file]:files:_files' \
'( --skip-system-css)'--skip-system-css'[Skip trying to parse the packaged Stylesheet file. Useful for CSS debugging]' \
'( --custom-system-css)'--custom-system-css'[Pick a custom CSS file to use as the "system" CSS. Useful for CSS debugging]:files:_files' \
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment