diff options
Diffstat (limited to 'source-builder/sb/options.py')
-rw-r--r-- | source-builder/sb/options.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source-builder/sb/options.py b/source-builder/sb/options.py index cddc880..ba1eff0 100644 --- a/source-builder/sb/options.py +++ b/source-builder/sb/options.py @@ -460,7 +460,9 @@ class command_line: return None return self.parse_args(arg) - def with_arg(self, label): + def with_arg(self, label, default = 'not-found'): + # the default if there is no option for without. + result = default for pre in ['with', 'without']: arg_str = '--%s-%s' % (pre, label) arg_label = '%s_%s' % (pre, label) @@ -471,10 +473,6 @@ class command_line: else: result = arg[1] break - if pre == 'with': - result = 'yes' - else: - result = 'no' return [arg_label, result] def get_config_files(self, config): |