aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wine.eselect9
1 files changed, 9 insertions, 0 deletions
diff --git a/wine.eselect b/wine.eselect
index 8b7bdd9..cb5a932 100644
--- a/wine.eselect
+++ b/wine.eselect
@@ -310,10 +310,19 @@ describe_unset_options() {
for v in ${VARIANTS[@]}; do
echo "--$v : Remove the 'wine-$v' symlinks"
done
+ echo "--all : Unset active wine and all variants"
}
do_unset() {
local variant=""
+ if has --all "$@"; then
+ do_unset
+ for variant in "$VARIANTS"; do
+ do_unset "--${variant}"
+ done
+ return 0
+ fi
+
if has "${1#--}" "${VARIANTS[@]}" ; then
variant=${1#--}
fi