Skip to content

Commit

Permalink
fix: standardize getopts parameters
Browse files Browse the repository at this point in the history
Signed-off-by: mao3267 <[email protected]>
  • Loading branch information
mao3267 committed Jan 11, 2025
1 parent 2d1fa58 commit 77253db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ REGISTRY=""
# SET the appname here
PROJECT_NAME="{{ cookiecutter.project_name }}"

while getopts a:r:v:h flag
while getopts p:r:v:h flag
do
case "${flag}" in
a) PROJECT_NAME=${OPTARG};;
p) PROJECT_NAME=${OPTARG};;
r) REGISTRY=${OPTARG};;
v) VERSION=${OPTARG};;
h) echo "Usage: ${0} [-h|[-p <project_name>][-r <registry_name>][-v <version>]]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ REGISTRY=""
# SET the appname here
PROJECT_NAME="{{ cookiecutter.project_name }}"

while getopts a:r:v:h flag
while getopts p:r:v:h flag
do
case "${flag}" in
p) PROJECT_NAME=${OPTARG};;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ REGISTRY=""
# SET the appname here
PROJECT_NAME="{{ cookiecutter.project_name }}"

while getopts a:r:v:h flag
while getopts p:r:v:h flag
do
case "${flag}" in
p) PROJECT_NAME=${OPTARG};;
Expand Down

0 comments on commit 77253db

Please sign in to comment.