Skip to content

Commit 5af1da4

Browse files
committed
fix(util): treat positional args as CMD_ARGS instead of unknown option error
Signed-off-by: Jack Luar <jluar@precisioninno.com>
1 parent 8171c9b commit 5af1da4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎flow/util/docker_shell‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ while [[ $# -gt 0 ]]; do
5353
--dry-run) DRY_RUN=true; shift ;;
5454
-h|--help) usage ;;
5555
--) shift; CMD_ARGS=("$@"); break ;;
56-
*) echo "Unknown option: $1" >&2; exit 1 ;;
56+
-*) echo "Unknown option: $1" >&2; exit 1 ;;
57+
*) CMD_ARGS=("$@"); break ;;
5758
esac
5859
done
5960

0 commit comments

Comments
 (0)