diff options
Diffstat (limited to 'distutils2/command')
| -rw-r--r-- | distutils2/command/cmd.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/distutils2/command/cmd.py b/distutils2/command/cmd.py index e63c46b..754fcf4 100644 --- a/distutils2/command/cmd.py +++ b/distutils2/command/cmd.py @@ -165,7 +165,10 @@ class Command(object): header = "command options for '%s':" % self.get_command_name() self.announce(indent + header, level=logging.INFO) indent = indent + " " + negative_opt = getattr(self, 'negative_opt', ()) for (option, _, _) in self.user_options: + if option in negative_opt: + continue option = option.replace('-', '_') if option[-1] == "=": option = option[:-1] |
