From bd7e2318d71a773da4ae362757597f54df31a6bb Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Tue, 31 May 2022 00:41:09 +0300 Subject: [PATCH] Check that --config and --print are not used together --- kconfig_hardened_check/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index a2fe794..01ffcbd 100644 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -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: -- 2.31.1