Skip to content

Commit 232ef79

Browse files
authored
Update APP-MANAGER
- report unknown options
1 parent e7e177c commit 232ef79

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

APP-MANAGER

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
AMVERSION="9.6.1-4"
3+
AMVERSION="9.6.1-5"
44

55
# Determine main repository and branch
66
AMREPO="https://raw.githubusercontent.com/ivan-hc/AM/main"
@@ -1249,10 +1249,12 @@ _use_module() {
12491249

12501250
case "$1" in
12511251
'')
1252+
echo "$DIVIDING_LINE"
12521253
echo " USAGE: $AMCLI [OPTION]"
12531254
echo " $AMCLI [OPTION] [ARGUMENT]"
12541255
echo ""
12551256
echo " Run the \"$AMCLI -h\" command to find out more"
1257+
echo "$DIVIDING_LINE"
12561258
exit 0
12571259
;;
12581260
'about'|'-a'|\
@@ -1682,7 +1684,9 @@ case "$1" in
16821684
if [ -t 1 ]; then _use_help; else _use_help | sed -e 's/\x1b\[[0-9;]*m//g'; fi
16831685
;;
16841686
*)
1685-
exec "$AMCLIPATH"
1687+
echo "$DIVIDING_LINE"
1688+
echo "ERROR: unknown option \"$1\", run the \"$AMCLI -h\" command to find out more" | _fit
1689+
echo "$DIVIDING_LINE"
16861690
;;
16871691
esac
16881692

0 commit comments

Comments
 (0)