Skip to content

Commit

Permalink
More conservative args parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertwb committed Sep 16, 2024
1 parent 2cd6fb8 commit e3f8c20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdks/python/apache_beam/options/pipeline_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,9 @@ def get_all_options(
'used for internal purposes.' % (','.join(unknown_args)))
i = 0
while i < len(unknown_args):
# End of argument parsing.
if unknown_args[i] == '--':
break
# Treat all unary flags as booleans, and all binary argument values as
# strings.
if not unknown_args[i].startswith('-'):
Expand Down

0 comments on commit e3f8c20

Please sign in to comment.