Skip to content

Commit 285d17b

Browse files
committed
git-merge-um : abort on invalid CLI args
1 parent fe3f0e1 commit 285d17b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git-merge-um

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ while [ "$#" -gt 0 ]; do
2525
-R) BASE_REPO="$2"; shift ;;
2626
-B) BASE_BRANCH="$2"; shift ;;
2727
-r) DO_REBASE=yes ;;
28+
*) echo "FATAL: Unknown argument: '$1'" >&2; return 1 ;;
2829
esac
2930
shift
3031
done

0 commit comments

Comments
 (0)