summaryrefslogtreecommitdiff
path: root/distutils2
diff options
context:
space:
mode:
author?ric Araujo <merwok@netwok.org>2010-12-09 03:35:18 +0100
committer?ric Araujo <merwok@netwok.org>2010-12-09 03:35:18 +0100
commite90c00fa351e303400529ef1554751f73b34090c (patch)
tree8ede4187f75b9af151f28d07091d8cc1028c9503 /distutils2
parent2539400b3b5ce2811ac0ae93026a7bf4f9e021af (diff)
downloaddisutils2-e90c00fa351e303400529ef1554751f73b34090c.tar.gz
Fix attribute error
Diffstat (limited to 'distutils2')
-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 2bc5546..382acb5 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=log.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]