Check that --config and --print are not used together
[kconfig-hardened-check.git] / kconfig_hardened_check / __init__.py
index a2fe794ae623efb1d3f3602a49ff7d8897eac6bb..01ffcbdd0a2cdd18ecd1ee0396d152c175d6c770 100644 (file)
@@ -851,6 +851,9 @@ def main():
     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: