wscript: allow - in feature name
authorPaul Brossier <piem@piem.org>
Mon, 2 Dec 2013 02:49:05 +0000 (21:49 -0500)
committerPaul Brossier <piem@piem.org>
Mon, 2 Dec 2013 02:49:05 +0000 (21:49 -0500)
wscript

diff --git a/wscript b/wscript
index 6513c52..b8f67fe 100644 (file)
--- a/wscript
+++ b/wscript
@@ -36,11 +36,11 @@ def add_option_enable_disable(ctx, name, default = None, help_str = None, help_d
   if help_disable_str == None:
       help_disable_str = 'do not ' + help_str
   ctx.add_option('--enable-' + name, action = 'store_true', default = default,
-          dest = 'enable_' + name,
+          dest = 'enable_' + name.replace('-','_'),
           help = help_str)
   ctx.add_option('--disable-' + name, action = 'store_false',
           #default = default,
-          dest = 'enable_' + name,
+          dest = 'enable_' + name.replace('-','_'),
           help = help_disable_str )
 
 def options(ctx):