Skip to content

Commit

Permalink
Update pylint/checkers/symilar.py
Browse files Browse the repository at this point in the history
Co-authored-by: Roger Sheu <[email protected]>
  • Loading branch information
Pierre-Sassoulas and rogersheu authored Aug 22, 2024
1 parent 44e41d7 commit 7f40854
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pylint/checkers/symilar.py
Original file line number Diff line number Diff line change
Expand Up @@ -896,10 +896,10 @@ def Run(argv: Sequence[str] | None = None) -> NoReturn:
parser.add_argument(
"-d", "--duplicates", type=int, default=DEFAULT_MIN_SIMILARITY_LINE
)
parser.add_argument("-i", "--ignore-comments", default=False)
parser.add_argument("--ignore-docstrings", default=False)
parser.add_argument("--ignore-imports", default=False)
parser.add_argument("--ignore-signatures", default=False)
parser.add_argument("-i", "--ignore-comments", action="store_true")
parser.add_argument("--ignore-docstrings", action="store_true")
parser.add_argument("--ignore-imports", action="store_true")
parser.add_argument("--ignore-signatures", action="store_true")
parsed_args = parser.parse_args(args=argv)
similar_runner = Symilar(
min_lines=parsed_args.duplicates,
Expand Down

0 comments on commit 7f40854

Please sign in to comment.