Browse Source

sde-cleanup: switch to --foo options

Signed-off-by: Alejandro Mery <amery@geeks.cl>
master
Alejandro Mery 3 years ago
parent
commit
9f501abc4c
1 changed files with 8 additions and 8 deletions
  1. +8
    -8
      bin/sde-cleanup

+ 8
- 8
bin/sde-cleanup

@ -30,22 +30,22 @@ cacheclean=0
cleanup_usage() {
cat <<EOT
Usage: sde cleanup [ -build ] [ -cache ] [ -full ] [ -nocheck ] [ -download ]
Usage: sde cleanup [ --build ] [ --cache ] [ --full ] [ --nocheck ] [ --download ]
sde cleanup [ dir(s) ]
EOT
}
while [ "$1" ] ; do
case "$1" in
-build)
-build|--build)
buildclean=1 ;;
-cache)
-cache|--cache)
cacheclean=1 ;;
-full)
-full|--full)
buildclean=1 ; cacheclean=1 ;;
-nocheck)
-nocheck|--nochek)
nocheck=1 ;;
-download)
-download|--download)
downclean=1 ;;
-*) cleanup_usage
exit 1 ;;
@ -135,8 +135,8 @@ done
if [ $fullhelp -eq 1 ]; then
cat <<-EOT
Use '$0 -build' to remove builds
and '$0 -cache' to also flush the cache.
Use '$0 --build' to remove builds
and '$0 --cache' to also flush the cache.
EOT
fi

Loading…
Cancel
Save