Update showhelp

This commit is contained in:
clsty
2025-10-19 11:53:34 +08:00
parent bc13baa5a9
commit ca104160b0
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
# shellcheck shell=bash
showhelp(){
echo -e "Usage: $0 exp-uninstall [OPTIONS]...
echo -e "Syntax: $0 exp-uninstall [OPTIONS]...
Experimental unintallation.
+1 -1
View File
@@ -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.
+2 -2
View File
@@ -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"
+2 -2
View File
@@ -17,9 +17,9 @@ Syntax:
$0 <subcommand> [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 <subcommand>, use -h for details: