Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 3b1d25c

Browse files
committed
rework how "other" options are handled in nancy run
1 parent a569171 commit 3b1d25c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

nancy_run.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,13 @@ while true; do
241241
exit 1;
242242
break ;;
243243
* )
244-
[ "$1" != "" ] && >&2 echo "ERROR: Invalid option '$1'. Please double-check options." && exit 1;
244+
if [ "${1:0:2}" == "--" ]; then
245+
>&2 echo "ERROR: Invalid option '$1'. Please double-check options."
246+
exit 1
247+
else
248+
>&2 echo "ERROR: \"nancy run\" does not support payload (except \"help\"). Use options, see \"nancy run help\"."
249+
exit 1
250+
fi
245251
break ;;
246252
esac
247253
done

0 commit comments

Comments
 (0)