projects
/
kconfig-hardened-check.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check that --config and --print are not used together
[kconfig-hardened-check.git]
/
kconfig_hardened_check
/
__init__.py
diff --git
a/kconfig_hardened_check/__init__.py
b/kconfig_hardened_check/__init__.py
index a2fe794ae623efb1d3f3602a49ff7d8897eac6bb..01ffcbdd0a2cdd18ecd1ee0396d152c175d6c770 100644
(file)
--- a/
kconfig_hardened_check/__init__.py
+++ b/
kconfig_hardened_check/__init__.py
@@
-851,6
+851,9
@@
def main():
config_checklist = []
if args.config:
config_checklist = []
if args.config:
+ if args.print:
+ sys.exit('[!] ERROR: --config and --print can\'t be used together')
+
if mode != 'json':
print('[+] Kconfig file to check: {}'.format(args.config))
if args.cmdline:
if mode != 'json':
print('[+] Kconfig file to check: {}'.format(args.config))
if args.cmdline: