8d21e7178a1f514f450005753ec3edce94f67928,src/python/pants/option/parser.py,Parser,_validate,#Parser#Any#Any#,192

Before Change


    Ensure that the caller isn"t trying to use unsupported argparse features.
    for k in ["nargs", "required"]:
      if k in kwargs:
        raise RegistrationError("%s unsupported in registration of option %s." % (k, args))

  def _set_dest(self, args, kwargs, legacy_dest):
    Maps the externally-used dest to a scoped one only seen internally.

After Change


                                "with a double-dash".format(arg, self._scope))
    for k in ["nargs", "required"]:
      if k in kwargs:
        raise RegistrationError("{0} unsupported in registration of option {1} in "
                                "scope {2}.".format(k, args, self._scope))

  def _set_dest(self, args, kwargs, legacy_dest):
    Maps the externally-used dest to a scoped one only seen internally.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 8d21e7178a1f514f450005753ec3edce94f67928
Time: 2014-10-24
Author: benjyw@gmail.com
File Name: src/python/pants/option/parser.py
Class Name: Parser
Method Name: _validate


Project Name: pantsbuild/pants
Commit Name: 65cd3bc9338aeb7efe02c13eea9e7b9def3435b9
Time: 2015-10-29
Author: benjyw@gmail.com
File Name: src/python/pants/option/parser.py
Class Name: Parser
Method Name: _validate


Project Name: pantsbuild/pants
Commit Name: 65cd3bc9338aeb7efe02c13eea9e7b9def3435b9
Time: 2015-10-29
Author: benjyw@gmail.com
File Name: src/python/pants/option/parser.py
Class Name: Parser
Method Name: register