This commit is contained in:
pvincent
2026-07-27 14:47:15 +04:00
parent 5a752fa210
commit 6fb25d217d
2 changed files with 21 additions and 11 deletions
+9 -4
View File
@@ -165,10 +165,15 @@ function usage {
introspect_scenarii
(
IFS='|'
echo "USAGE: $0 <${SCENARII[*]}>"
echo "USAGE: $0 <case_scenario>"
)
echo -e "\trun case scenario which performs various bash statements and mostly fails"
echo -e "\tthese case scenarii helps testing the miaou-bash script"
echo -e "\trun a case scenario built from various bash statements and mostly ends up on failure"
echo -e "\tthese case scenarii provide the help suite needed for \`miaou-bash\`"
echo -e "\there is the list of available case scenario:"
local i
for i in "${SCENARII[@]}"; do
echo -e "\t- $i"
done
}
function introspect_scenarii {
@@ -183,7 +188,7 @@ function test_contain_item {
# MAIN
[[ $# -eq 0 ]] && >&2 echo 'arg1 expected!' && usage && exit 1
[[ $# -eq 0 ]] && >&2 echo '<case_scenario> required!' && usage && exit 1
scenario="$1"
introspect_scenarii