commit | 21c3483326dd236da811617241b18ae0f28295bb | [log] [tgz] |
---|---|---|
author | Daniel Truemper <truemped@googlemail.com> | 周日 1月 24 12:11:15 2010 +0100 |
committer | Daniel Truemper <truemped@googlemail.com> | 周日 1月 24 12:11:15 2010 +0100 |
tree | ff598d8af3d3043fa475ba5ea6a08164bc902564 | |
parent | 093a14773182c16d60c4c05cba46f05f18a49d6f [diff] [blame] |
allow optional argument to the feature subcommand
diff --git a/gitflow-feature b/gitflow-feature index ccc99be..6551b99 100755 --- a/gitflow-feature +++ b/gitflow-feature
@@ -18,9 +18,12 @@ } parse_args() { - # TODO: Implement the optional base argument FEATURE="$1" - BASE="develop" + if [ $# -eq 2 ]; then + BASE="$2" + else + BASE="develop" + fi if [ "$FEATURE" = "" ]; then echo "Missing argument <release>." usage