mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
189530507f
Comment on Discussion When sdata/dist-arch/ Changes / comment_on_discussion (push) Waiting to run
30 lines
640 B
Bash
30 lines
640 B
Bash
# Handle args for subcmd: uninstall
|
|
# shellcheck shell=bash
|
|
|
|
showhelp(){
|
|
echo -e "Syntax: $0 uninstall [OPTIONS]...
|
|
|
|
Unintall dots.
|
|
|
|
Options:
|
|
-h, --help Show this help message
|
|
"
|
|
}
|
|
# `man getopt` to see more
|
|
para=$(getopt \
|
|
-o h \
|
|
-l help \
|
|
-n "$0" -- "$@")
|
|
[ $? != 0 ] && echo "$0: Error when getopt, please recheck parameters." && exit 1
|
|
#####################################################################################
|
|
## getopt Phase 1
|
|
# ignore parameter's order, execute options below first
|
|
eval set -- "$para"
|
|
while true ; do
|
|
case "$1" in
|
|
-h|--help) showhelp;exit;;
|
|
--) break ;;
|
|
*) shift ;;
|
|
esac
|
|
done
|