summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/swall3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/swall b/scripts/swall
index b7cb841..b023534 100755
--- a/scripts/swall
+++ b/scripts/swall
@@ -55,6 +55,9 @@ while getopts "hcd:" option; do
esac
done
+shift $((OPTIND - 1))
+
+[ ${#} != 0 ] && err "${0}: Invalid usage" "Try '${0} -h' for help."
if [ -n "${input}" ]; then
case $(file -b --mime-type "${input}") in