Skip to content

Commit

Permalink
Convert append -> nargs, so arguments are not additive (#2191)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximus12793 authored and andrewsg committed Jun 5, 2019
1 parent a455aae commit 333677e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dlp/deid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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". '
Expand Down
4 changes: 2 additions & 2 deletions dlp/inspect_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -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". '
Expand Down Expand Up @@ -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". '
Expand Down
2 changes: 1 addition & 1 deletion dlp/redact.py
Original file line number Diff line number Diff line change
Expand Up @@ -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". '
Expand Down
2 changes: 1 addition & 1 deletion dlp/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -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". '
Expand Down
2 changes: 1 addition & 1 deletion dlp/triggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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". '
Expand Down

0 comments on commit 333677e

Please sign in to comment.