summaryrefslogtreecommitdiff
path: root/distutils2/command/cmd.py
diff options
context:
space:
mode:
author?ric Araujo <merwok@netwok.org>2011-01-29 17:12:02 +0100
committer?ric Araujo <merwok@netwok.org>2011-01-29 17:12:02 +0100
commitc4229e44fffe980c8cf1c8dd800561f41df1affe (patch)
tree6990dfa53720c7521ca71865034dc1c904bd51f3 /distutils2/command/cmd.py
parent04b4880fd837985753ed13e60aca3a8b77798d2d (diff)
parentf31dc8a82ef42b19c5b50234be764e7388f8c0ed (diff)
downloaddisutils2-c4229e44fffe980c8cf1c8dd800561f41df1affe.tar.gz
Branch merge
Diffstat (limited to 'distutils2/command/cmd.py')
-rw-r--r--distutils2/command/cmd.py3
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]