Skip to content

Commit

Permalink
Add a CLI option to override the config file path
Browse files Browse the repository at this point in the history
  • Loading branch information
cbouchardseatgeek committed Apr 2, 2024
1 parent 56fc4a2 commit 3c1bfe4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyupgrade/_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,10 @@ def _build_config_arg_parser() -> configargparse.ArgumentParser:
)

parser.add_argument('filenames', nargs='*')
parser.add_argument(
'--config-file',
is_config_file=True, help='config file path',
)
parser.add_argument('--exit-zero-even-if-changed', action='store_true')
parser.add_argument('--keep-percent-format', action='store_true')
parser.add_argument('--keep-mock', action='store_true')
Expand Down

0 comments on commit 3c1bfe4

Please sign in to comment.