riteshghorse commented on code in PR #25920:
URL: https://github.com/apache/beam/pull/25920#discussion_r1146319513
##########
sdks/python/apache_beam/options/pipeline_options.py:
##########
@@ -347,9 +347,16 @@ def get_all_options(
else:
parser.add_argument(split[0], type=str)
i += 1
- else:
+ elif unknown_args[i].startswith('--'):
parser.add_argument(unknown_args[i], type=str)
i += 2
+ else:
+ # skip all binary flags used with '-' and not '--'.
+ # ex: using -f instead of --f (or --flexrs_goal) will prevent
+ # argument validation before job submission and can be incorrectly
Review Comment:
Added warning log
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]