1
0
mirror of https://github.com/zplug/zplug synced 2025-08-30 01:30:43 +02:00
zplug/autoload/commands/__clear__
Naoki Mizuno 25b3e36b82 Deprecate clear --force
Since there is not much point in prompting (i.e. it's not the end of the world
if you delete your cache by mistake), the default behavior becomes the
equivalent of --force but without the message.
2016-04-02 02:14:40 -04:00

20 lines
276 B
Bash

#!/bin/zsh
__import "print/print"
local arg
while (( $# > 0 ))
do
arg="$1"
case "$arg" in
-*|--*)
__zplug::print::print::die "[zplug] $arg: Unknown option\n"
return 1
;;
esac
shift
done
rm -f "$ZPLUG_CACHE_FILE"