eaa3aac5617e26c04395bab462814d3f3937a19b,src/python/pants/option/parser.py,Parser,register,#Parser#,93
Before Change
inverse_args = []
help_args = []
for flag in args:
if flag.startswith("--") and not flag.startswith("--no-"):
inverse_args.append("--no-" + flag[2:])
help_args.append("--[no-]{0}".format(flag[2:]))
else:
help_args.append(flag)
else:
inverse_args = None
help_args = args
After Change
help_args = []
for flag in self.expand_flags(*args, **kwargs):
if flag.inverse_name:
inverse_args.append(flag.inverse_name)
help_args.append(flag.help_arg)
// Register the option, only on this scope, for the purpose of displaying help.
// Note that we"ll only display the default value for this scope, even though the
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: pantsbuild/pants
Commit Name: eaa3aac5617e26c04395bab462814d3f3937a19b
Time: 2015-01-24
Author: john.sirois@gmail.com
File Name: src/python/pants/option/parser.py
Class Name: Parser
Method Name: register
Project Name: stanfordnlp/stanza
Commit Name: f25d9afd2572b98c56c3f597ad8da2648cd7b663
Time: 2020-12-01
Author: horatio@gmail.com
File Name: stanza/utils/training/common.py
Class Name:
Method Name: main
Project Name: tensorflow/transform
Commit Name: 4bf19837a0df0c7c8e7bd3f3c6a55ddd62e30c6b
Time: 2018-04-30
Author: tf-transform-dev@google.com
File Name: tensorflow_transform/saved/saved_transform_io.py
Class Name:
Method Name: _partially_apply_saved_transform_impl