Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: cms/translations/xtm/cli.py

Issue 29908581: Issue #7036 - [XTM Integration] Add support for providing workflow name (Closed)
Patch Set: Addressed comments from Patch Set 1 Created Oct. 18, 2018, 4:23 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « .hgignore ('k') | cms/translations/xtm/constants.py » ('j') | tests/utils.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cms/translations/xtm/cli.py
diff --git a/cms/translations/xtm/cli.py b/cms/translations/xtm/cli.py
index 693969c504912a5f817fb597d576a28c83bf84a6..9bade4323d56be2a85360ea696297c07c45b50ca 100644
--- a/cms/translations/xtm/cli.py
+++ b/cms/translations/xtm/cli.py
@@ -104,7 +104,7 @@ def parse_args():
help=const.ArgumentsHelp.ProjectCreate.REF_ID,
)
project_create_parser.add_argument(
- '--workflow-id', required=True, type=int,
+ '--workflow-id', type=int,
help=const.ArgumentsHelp.ProjectCreate.WORKFLOW_ID,
)
project_create_parser.add_argument(
@@ -115,6 +115,10 @@ def parse_args():
'--save-id', action='store_true', default=False,
help=const.ArgumentsHelp.ProjectCreate.SAVE_ID,
)
+ project_create_parser.add_argument(
+ '--workflow-name',
+ help=const.ArgumentsHelp.ProjectCreate.WORKFLOW_NAME,
+ )
# Subparser for uploading files to project
project_upload_parser = subparsers.add_parser(
« no previous file with comments | « .hgignore ('k') | cms/translations/xtm/constants.py » ('j') | tests/utils.py » ('J')

Powered by Google App Engine
This is Rietveld