forked from Shinonome/dots-hyprland
Update showhelp
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# shellcheck shell=bash
|
||||
|
||||
showhelp(){
|
||||
echo -e "Usage: $0 exp-uninstall [OPTIONS]...
|
||||
echo -e "Syntax: $0 exp-uninstall [OPTIONS]...
|
||||
|
||||
Experimental unintallation.
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user