mirror of
https://github.com/github/spec-kit.git
synced 2026-02-02 05:53:36 +00:00
Change loop condition to include last argument
The last argument is not processed. e.g. create-new-feature.sh -h doesn't show the help information.
This commit is contained in:
@@ -6,7 +6,7 @@ JSON_MODE=false
|
|||||||
SHORT_NAME=""
|
SHORT_NAME=""
|
||||||
ARGS=()
|
ARGS=()
|
||||||
i=0
|
i=0
|
||||||
while [ $i -lt $# ]; do
|
while [ $i -le $# ]; do
|
||||||
arg="${!i}"
|
arg="${!i}"
|
||||||
case "$arg" in
|
case "$arg" in
|
||||||
--json)
|
--json)
|
||||||
@@ -197,4 +197,4 @@ else
|
|||||||
echo "SPEC_FILE: $SPEC_FILE"
|
echo "SPEC_FILE: $SPEC_FILE"
|
||||||
echo "FEATURE_NUM: $FEATURE_NUM"
|
echo "FEATURE_NUM: $FEATURE_NUM"
|
||||||
echo "SPECIFY_FEATURE environment variable set to: $BRANCH_NAME"
|
echo "SPECIFY_FEATURE environment variable set to: $BRANCH_NAME"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user