Commit 8392ed32 authored by Vincent Driessen's avatar Vincent Driessen

Doesn't make sense to allow prefix names for commands that require $BRANCH to be absent.

parent 22ef21a1
...@@ -107,13 +107,13 @@ parse_args() { ...@@ -107,13 +107,13 @@ parse_args() {
parse_args_common parse_args_common
} }
parse_start_args() { parse_args_with_name_prefix() {
NAME="$1" NAME="$1"
parse_args_common parse_args_common
} }
cmd_start() { cmd_start() {
parse_start_args "$@" parse_args_with_name_prefix "$@"
# sanity checks # sanity checks
gitflow_require_clean_working_tree gitflow_require_clean_working_tree
...@@ -248,7 +248,7 @@ helper_finish_cleanup() { ...@@ -248,7 +248,7 @@ helper_finish_cleanup() {
} }
cmd_publish() { cmd_publish() {
parse_args "$@" parse_args_with_name_prefix "$@"
# sanity checks # sanity checks
gitflow_require_clean_working_tree gitflow_require_clean_working_tree
...@@ -274,7 +274,7 @@ cmd_publish() { ...@@ -274,7 +274,7 @@ cmd_publish() {
} }
cmd_track() { cmd_track() {
parse_args "$@" parse_args_with_name_prefix "$@"
# sanity checks # sanity checks
gitflow_require_clean_working_tree gitflow_require_clean_working_tree
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment