tvalentyn commented on pull request #16715:
URL: https://github.com/apache/beam/pull/16715#issuecomment-1030567382


   I think the consitency we can pursue here is: when we initialize options 
that have store_true / store_false actions, we don't allow values, but we 
intepret the fact that the option is specified. In apis that expect K-V pairs 
(PipelineOpitions(), from_dictionary(), we need to pass some value, so we only 
allow `True` as value and interpret  it as: 'option is present', not 
necessarily that the corresponding dest needs to be set to `True`. This is what 
argparse does. 


-- 
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]


Reply via email to