From ae28d0bd6d6113ffa1eeca1168dc12d26e4866cd Mon Sep 17 00:00:00 2001 From: reakjra Date: Tue, 18 Nov 2025 15:48:21 +0100 Subject: [PATCH] bound --- sdata/subcmd-exp-merge/options.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sdata/subcmd-exp-merge/options.sh b/sdata/subcmd-exp-merge/options.sh index e1185da9b..3f7d153d8 100644 --- a/sdata/subcmd-exp-merge/options.sh +++ b/sdata/subcmd-exp-merge/options.sh @@ -10,6 +10,7 @@ Merges upstream changes with your quickshell config. Options: -n, --dry-run Show what would be done -h, --help Show this help + -s, --skip-notice Skip notice about script being experimental --skip-fetch Skip fetching from remote How it works: @@ -25,8 +26,8 @@ How it works: } para=$(getopt \ - -o hn \ - -l help,dry-run,skip-fetch \ + -o hns \ + -l help,dry-run,skip-notice,skip-fetch \ -n "$0" -- "$@") [ $? != 0 ] && echo "$0: Error when getopt, please recheck parameters." && exit 1 @@ -41,6 +42,7 @@ done DRY_RUN=false SKIP_FETCH=false +SKIP_NOTICE=false eval set -- "$para" while true ; do @@ -48,6 +50,9 @@ while true ; do -n|--dry-run) DRY_RUN=true;shift log_info "Dry-run mode enabled - no changes will be made" ;; + -s|--skip-notice) SKIP_NOTICE=true;shift + log_warning "Skipping notice about script being experimental" + ;; --skip-fetch) SKIP_FETCH=true;shift log_info "Skipping fetch from remote" ;;