Make getopt and eol_branch.sh agree on the name for the dry-run argument

If we run eol_branch.sh with --dry-run we get told it's an unknown
argument.  This is because we're calling getopt with 'dry'.  Let's give
getopt the right name.

Change-Id: I379ebdaa3c9d48218df974d01de2c76744d21c6f
This commit is contained in:
Tony Breeds 2018-03-30 11:58:30 +11:00
parent ff179e4519
commit 69c1b0db4d
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ function print_help {
echo ""
}
OPTS=`getopt -o dhqw --long eol-message:,dry,help,quiet,remote:,warn-exit -n $0 -- "$@"`
OPTS=`getopt -o dhqw --long eol-message:,dry-run,help,quiet,remote:,warn-exit -n $0 -- "$@"`
if [ $? != 0 ] ; then
echo "Failed parsing options." >&2
print_help