diff --git a/dlp/deid.py b/dlp/deid.py index 9c97f8e620e..c73631a3fc8 100644 --- a/dlp/deid.py +++ b/dlp/deid.py @@ -417,7 +417,7 @@ def write_data(data): help='Deidentify sensitive data in a string by masking it with a ' 'character.') mask_parser.add_argument( - '--info_types', action='append', + '--info_types', nargs='+', help='Strings representing info types to look for. A full list of ' 'info categories and types is available from the API. Examples ' 'include "FIRST_NAME", "LAST_NAME", "EMAIL_ADDRESS". ' diff --git a/dlp/inspect_content.py b/dlp/inspect_content.py index a741e0ee734..6d93241bb9a 100644 --- a/dlp/inspect_content.py +++ b/dlp/inspect_content.py @@ -786,7 +786,7 @@ def callback(message): help='The Google Cloud project id to use as a parent resource.', default=default_project) parser_string.add_argument( - '--info_types', action='append', + '--info_types', nargs='+', help='Strings representing info types to look for. A full list of ' 'info categories and types is available from the API. Examples ' 'include "FIRST_NAME", "LAST_NAME", "EMAIL_ADDRESS". ' @@ -1041,7 +1041,7 @@ def callback(message): help='The Google Cloud project id to use as a parent resource.', default=default_project) parser_bigquery.add_argument( - '--info_types', action='append', + '--info_types', nargs='+', help='Strings representing info types to look for. A full list of ' 'info categories and types is available from the API. Examples ' 'include "FIRST_NAME", "LAST_NAME", "EMAIL_ADDRESS". ' diff --git a/dlp/redact.py b/dlp/redact.py index 490f5524289..22ed77fa4db 100644 --- a/dlp/redact.py +++ b/dlp/redact.py @@ -121,7 +121,7 @@ def redact_image(project, filename, output_filename, help='The Google Cloud project id to use as a parent resource.', default=default_project) parser.add_argument( - '--info_types', action='append', + '--info_types', nargs='+', help='Strings representing info types to look for. A full list of ' 'info categories and types is available from the API. Examples ' 'include "FIRST_NAME", "LAST_NAME", "EMAIL_ADDRESS". ' diff --git a/dlp/templates.py b/dlp/templates.py index 7ebde2cef1b..85d8a0bb494 100644 --- a/dlp/templates.py +++ b/dlp/templates.py @@ -178,7 +178,7 @@ def delete_inspect_template(project, template_id): help='The Google Cloud project id to use as a parent resource.', default=default_project) parser_create.add_argument( - '--info_types', action='append', + '--info_types', nargs='+', help='Strings representing info types to look for. A full list of ' 'info categories and types is available from the API. Examples ' 'include "FIRST_NAME", "LAST_NAME", "EMAIL_ADDRESS". ' diff --git a/dlp/triggers.py b/dlp/triggers.py index 7126f0dcdc7..a486386e767 100644 --- a/dlp/triggers.py +++ b/dlp/triggers.py @@ -216,7 +216,7 @@ def delete_trigger(project, trigger_id): help='The Google Cloud project id to use as a parent resource.', default=default_project) parser_create.add_argument( - '--info_types', action='append', + '--info_types', nargs='+', help='Strings representing info types to look for. A full list of ' 'info categories and types is available from the API. Examples ' 'include "FIRST_NAME", "LAST_NAME", "EMAIL_ADDRESS". '