Skip to content

Commit

Permalink
libmode: fix argument mapping
Browse files Browse the repository at this point in the history
Closes #687

Signed-off-by: Konrad Weihmann <[email protected]>
  • Loading branch information
priv-kweihmann committed Jan 20, 2025
1 parent 80e4dba commit bb5c7f6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions oelint_adv/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,21 +338,21 @@ def create_lib_arguments(files: List[str],
parser.add_argument('files', nargs='*')

dummy_args = [y for y in [
*['--suppress={x}' for x in (suppressions or ())],
*[f'--suppress={x}' for x in (suppressions or ())],
'--fix' if fix else '',
'--nobackup' if nobackup else '',
*['--addrules={x}' for x in (additional_rules or ())],
*[f'--addrules={x}' for x in (additional_rules or ())],
'--rulefile={rulefile}' if rulefile else '',
'--jobs={jobs}' if jobs else '',
f'--jobs={jobs}' if jobs else '',
'--color' if color else '',
'--quiet' if quiet else '',
'--noinfo' if noinfo else '',
'--nowarn' if nowarn else '',
*['--hide={x}' for x in (hide or ())],
*[f'--hide={x}' for x in (hide or ())],
'--relpaths' if relpaths else '',
'--messageformat={messageformat}' if messageformat else '',
*['--constantmods={x}' for x in (constantmods or ())],
'--release={release}' if release else '',
f'--messageformat={messageformat}' if messageformat else '',
*[f'--constantmods={x}' for x in (constantmods or ())],
f'--release={release}' if release else '',
f'--mode={mode}',
'--cached' if cached else '',
f'--cachedir={cachedir}',
Expand Down

0 comments on commit bb5c7f6

Please sign in to comment.