Skip to content

Commit

Permalink
Check that --config and --print are not used together
Browse files Browse the repository at this point in the history
  • Loading branch information
a13xp0p0v committed May 30, 2022
1 parent e3503e9 commit bd7e231
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kconfig_hardened_check/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bd7e231

Please sign in to comment.