Skip to content

Commit da95c30

Browse files
committed
Make some minor improvements to command handling in development.sh to bring it
in line with other JORE4 repositories.
1 parent b73b7bb commit da95c30

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

scripts/development.sh

+9-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ check_images() {
332332

333333
print_usage() {
334334
echo "
335-
Usage $0 <command>
335+
Usage: $(basename "$0") <command>
336336
337337
start:deps
338338
Start dependencies but do not insert data to database.
@@ -379,6 +379,11 @@ print_usage() {
379379
"
380380
}
381381

382+
if [[ $# -eq 0 ]]; then
383+
print_usage
384+
exit 1
385+
fi
386+
382387
case $1 in
383388
start:deps)
384389
start_dependencies
@@ -417,6 +422,9 @@ help)
417422
;;
418423

419424
*)
425+
echo ""
426+
echo "Unknown command: '${1}'"
420427
print_usage
428+
exit 1
421429
;;
422430
esac

0 commit comments

Comments
 (0)