Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tsoc
hg-misc-tools
Commits
277834c7
Commit
277834c7
authored
Mar 03, 2026
by
one
Browse files
[cluster] Fix the help option
parent
16cd154d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
projects/cluster/docker-cluster-up.sh
projects/cluster/docker-cluster-up.sh
+2
-1
No files found.
projects/cluster/docker-cluster-up.sh
View file @
277834c7
...
...
@@ -36,11 +36,12 @@ usage() {
exit
1
}
OPTS
=
$(
getopt
-o
fi
:n:p:w:
--long
force,image:,name:,port:,workdir:,no-pull
-n
"
$0
"
--
"
$@
"
)
||
usage
OPTS
=
$(
getopt
-o
h
fi:n:p:w:
--long
help
,
force,image:,name:,port:,workdir:,no-pull
-n
"
$0
"
--
"
$@
"
)
||
usage
eval set
--
"
${
OPTS
}
"
while
true
;
do
case
"
$1
"
in
-h
|
--help
)
usage
;;
-f
|
--force
)
FORCE_RM
=
1
;
shift
;;
-i
|
--image
)
IMAGE_NAME
=
"
$2
"
;
shift
2
;;
-n
|
--name
)
CONTAINER_NAME
=
"
$2
"
;
shift
2
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment