From ca104160b01039a6b9a7d20eee47c5ac9fa352d1 Mon Sep 17 00:00:00 2001 From: clsty Date: Sun, 19 Oct 2025 11:53:34 +0800 Subject: [PATCH] Update showhelp --- sdata/options/exp-uninstall.sh | 2 +- sdata/options/exp-update.sh | 2 +- sdata/step/exp-update-tester.sh | 4 ++-- setup | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sdata/options/exp-uninstall.sh b/sdata/options/exp-uninstall.sh index 4e2b3a932..df2230f8b 100644 --- a/sdata/options/exp-uninstall.sh +++ b/sdata/options/exp-uninstall.sh @@ -2,7 +2,7 @@ # shellcheck shell=bash showhelp(){ -echo -e "Usage: $0 exp-uninstall [OPTIONS]... +echo -e "Syntax: $0 exp-uninstall [OPTIONS]... Experimental unintallation. diff --git a/sdata/options/exp-update.sh b/sdata/options/exp-update.sh index b28a3dd82..f66baa234 100644 --- a/sdata/options/exp-update.sh +++ b/sdata/options/exp-update.sh @@ -2,7 +2,7 @@ # shellcheck shell=bash showhelp(){ -echo -e "Usage: $0 exp-update [OPTIONS]... +echo -e "Syntax: $0 exp-update [OPTIONS]... Experimental updating without full reinstall. Updates dotfiles by syncing configuration files to home directory. diff --git a/sdata/step/exp-update-tester.sh b/sdata/step/exp-update-tester.sh index 668ca7bb5..06d6392d6 100755 --- a/sdata/step/exp-update-tester.sh +++ b/sdata/step/exp-update-tester.sh @@ -92,7 +92,7 @@ test_syntax() { test_help_option() { log_test "Testing --help option" - if ./setup exp-update --help 2>&1 | grep -qiE "(Usage|Options|exp-update)"; then + if ./setup exp-update --help 2>&1 | grep -qiE "(Syntax|Options|exp-update)"; then log_pass "Help option works" return 0 else @@ -443,7 +443,7 @@ test_flags() { local all_passed=true for flag in "${flags[@]}"; do - if ./setup exp-update "$flag" 2>&1 | grep -qiE "(Usage|Options|exp-update)"; then + if ./setup exp-update "$flag" 2>&1 | grep -qiE "(Syntax|Options|exp-update)"; then log_test " ✓ $flag recognized" else log_test " ✗ $flag not recognized" diff --git a/setup b/setup index 4a99cfa50..88fb487e1 100755 --- a/setup +++ b/setup @@ -17,9 +17,9 @@ Syntax: $0 [OPTIONS]... Subcommands: - install (Default) Install or update illogical-impulse. + install (Default) Install/Reinstall/Update illogical-impulse. exp-uninstall (Experimental) Uninstall illogical-impulse. - exp-update (Experimental) Update illogical-impulse without fully install. + exp-update (Experimental) Update illogical-impulse without fully reinstall. help Show this help message. For each , use -h for details: