Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-cicd
csst-dag
Commits
84ec23f5
Commit
84ec23f5
authored
May 23, 2025
by
BO ZHANG
🏀
Browse files
add --demo (store_true)
parent
ffd929c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dag/cli/msc.py
View file @
84ec23f5
...
...
@@ -11,7 +11,8 @@ python -m csst_dag.cli.msc \
--batch-id=csci-test-20250507
\
--priority=1
\
--initial-prc-status=-1024
\
--final-prc-status=-2
--final-prc-status=-2
\
--demo=True
"""
from
csst_dag.dag
import
CsstDAG
...
...
@@ -34,7 +35,9 @@ parser.add_argument(
parser
.
add_argument
(
"--final-prc-status"
,
type
=
int
,
help
=
"Final processing status"
,
default
=-
2
)
parser
.
add_argument
(
"--demo"
,
type
=
bool
,
help
=
"Demo mode"
,
default
=
False
)
parser
.
add_argument
(
"--demo"
,
action
=
"store_true"
,
help
=
"Enable demo mode (default: False)"
)
args
=
parser
.
parse_args
()
print
(
"CLI parameters: "
,
args
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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