diff options
author | William Deegan <bill@baddogconsulting.com> | 2022-12-19 20:32:18 -0800 |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2022-12-19 20:32:18 -0800 |
commit | d14d9694f925a04f033e6f0119f36f5fbfbc73f3 (patch) | |
tree | 0d8eef675e93eb6464f9344c254c795b02eb8407 /SCons/Script | |
parent | 6d8588a076c796f48d2328784cbaf390ee572d1c (diff) | |
download | scons-git-d14d9694f925a04f033e6f0119f36f5fbfbc73f3.tar.gz |
Fixed using --diskcheck=none from command line. It was always broken. SetOption('diskcheck','none') has been working all along. Also refactored the DiskChecker class to have more meaningful properties and not shadow default python objects (list, dir)..
Diffstat (limited to 'SCons/Script')
-rw-r--r-- | SCons/Script/SConsOptions.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/SCons/Script/SConsOptions.py b/SCons/Script/SConsOptions.py index a3e3ea8b3..8391d6208 100644 --- a/SCons/Script/SConsOptions.py +++ b/SCons/Script/SConsOptions.py @@ -54,7 +54,10 @@ def diskcheck_convert(value): if v == 'all': result = diskcheck_all elif v == 'none': - result = [] + # Don't use an empty list here as that fails the normal check + # to see if an optparse parser of if parser.argname: + # Changed to ['none'] as diskcheck expects a list value + result = ['none'] elif v in diskcheck_all: result.append(v) else: |