Skip to content

Commit

Permalink
fix #9
Browse files Browse the repository at this point in the history
  • Loading branch information
reidsunderland committed Jan 5, 2024
1 parent b09cd7a commit b8f8a26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/sr3d
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ for argu in "$@"; do
break
fi
done
if [ -z "${action}" ]; then

# allow sr3d --version, for example, but do not allow any other command with no action
if [ -z "${action}" ] && ([ $# -ne 1 ] || [[ "$1" != "--"* ]]); then
echo "Could not determine which argument contained the action."
echo "Actions are: ${SR3_ACTIONS}"
exit 1
Expand Down

0 comments on commit b8f8a26

Please sign in to comment.