arg0
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user