diff --git a/sdks/python/apache_beam/options/pipeline_options.py b/sdks/python/apache_beam/options/pipeline_options.py index 8eba11d9ea34..775f73bd2afd 100644 --- a/sdks/python/apache_beam/options/pipeline_options.py +++ b/sdks/python/apache_beam/options/pipeline_options.py @@ -591,6 +591,8 @@ def _add_argparse_args(cls, parser): parser.add_argument( '--update_compatibility_version', default=None, + nargs='?', + const=None, help='Attempt to produce a pipeline compatible with the given prior ' 'version of the Beam SDK. ' 'See for example, https://cloud.google.com/dataflow/docs/guides/'