Skip to content

Commit

Permalink
feat(components): Add nargs to allow for empty string input by component
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 462727038
  • Loading branch information
Xiaowen Xie authored and Google Cloud Pipeline Components maintainers committed Jul 22, 2022
1 parent d3fe514 commit 555447f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ def _make_parent_dirs_and_return_path(file_path: str):
required=True,
default=argparse.SUPPRESS)
parser.add_argument(
'--display_name', dest='display_name', type=str, default=None)
'--display_name', nargs='?', dest='display_name', type=str, default=None)
parser.add_argument(
'--pipeline_job_id', dest='pipeline_job_id', type=str, default=None)
parser.add_argument(
'--dataset_path', dest='dataset_path', type=str, default=None)
'--dataset_path', nargs='?', dest='dataset_path', type=str, default=None)
parser.add_argument(
'--dataset_type', dest='dataset_type', type=str, default=None)
'--dataset_type', nargs='?', dest='dataset_type', type=str, default=None)
parser.add_argument(
'--model_name',
dest='model_name',
Expand Down

0 comments on commit 555447f

Please sign in to comment.