[
https://issues.apache.org/jira/browse/BEAM-8959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16994909#comment-16994909
]
Thomas Weise commented on BEAM-8959:
------------------------------------
[https://stackoverflow.com/questions/15008758/parsing-boolean-values-with-argparse]
Maybe the option should just be --disable_metrics if the default is true. I
would find that more intuitive.
> Boolean pipeline options which default to true cannot be set to false
> ---------------------------------------------------------------------
>
> Key: BEAM-8959
> URL: https://issues.apache.org/jira/browse/BEAM-8959
> Project: Beam
> Issue Type: Bug
> Components: sdk-py-core
> Reporter: Maximilian Michels
> Priority: Critical
>
> With the included argument parser, any boolean pipeline options which default
> to true cannot be set to false, e.g. {{--enable_metrics=false}}:
> {noformat}
> error: argument --enable_metrics: ignored explicit argument 'false'
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)