From: Alexander Popov Date: Mon, 30 May 2022 21:41:09 +0000 (+0300) Subject: Check that --config and --print are not used together X-Git-Tag: v0.6.1~152 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=bd7e2318d71a773da4ae362757597f54df31a6bb;p=kconfig-hardened-check.git Check that --config and --print are not used together --- 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: