feat: dkprune defaults
This commit is contained in:
parent
83048705cd
commit
0d47c0921f
@ -5,7 +5,9 @@
|
|||||||
|
|
||||||
function usage() {
|
function usage() {
|
||||||
cat << EOF
|
cat << EOF
|
||||||
Usage: $0 -hcCviIna
|
Usage: $0 [-hcCviIna]
|
||||||
|
Prune Docker resources.
|
||||||
|
If no option provided, defaults to -Cvn
|
||||||
Options:
|
Options:
|
||||||
-h Show this help and exits
|
-h Show this help and exits
|
||||||
-c Remove stopped containers
|
-c Remove stopped containers
|
||||||
@ -76,6 +78,9 @@ while getopts hcCviIna o; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ "$CLEAN" == 0 ]; then
|
||||||
|
CLEAN="$((C + v + n))"
|
||||||
|
fi
|
||||||
|
|
||||||
VALUES=(
|
VALUES=(
|
||||||
"$a"
|
"$a"
|
||||||
|
Loading…
Reference in New Issue
Block a user