summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-07-31 14:26:53 -0400
committerDave Reisner <dreisner@archlinux.org>2014-07-31 14:26:53 -0400
commit93883e62b3228071cd9d15a7e9c49a1840611b26 (patch)
treee5bf7ff717b1b19d712ef7e803763fa9a2cb2616
parente7fc6f2452a4d348396b944df8bf5dac47281c1b (diff)
downloadasp32-93883e62b3228071cd9d15a7e9c49a1840611b26.tar.xz
report a useful error when no args are passed
-rw-r--r--asp.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/asp.in b/asp.in
index 6f35d67..ccb2c75 100644
--- a/asp.in
+++ b/asp.in
@@ -251,6 +251,9 @@ case $action in
usage
exit 0
;;
+ '')
+ log_fatal 'no action specified (use -h for help)'
+ ;;
*)
log_fatal 'unknown action: %s' "$action"
;;