Skip to content

Commit 7f40854

Browse files
Update pylint/checkers/symilar.py
Co-authored-by: Roger Sheu <[email protected]>
1 parent 44e41d7 commit 7f40854

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pylint/checkers/symilar.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -896,10 +896,10 @@ def Run(argv: Sequence[str] | None = None) -> NoReturn:
896896
parser.add_argument(
897897
"-d", "--duplicates", type=int, default=DEFAULT_MIN_SIMILARITY_LINE
898898
)
899-
parser.add_argument("-i", "--ignore-comments", default=False)
900-
parser.add_argument("--ignore-docstrings", default=False)
901-
parser.add_argument("--ignore-imports", default=False)
902-
parser.add_argument("--ignore-signatures", default=False)
899+
parser.add_argument("-i", "--ignore-comments", action="store_true")
900+
parser.add_argument("--ignore-docstrings", action="store_true")
901+
parser.add_argument("--ignore-imports", action="store_true")
902+
parser.add_argument("--ignore-signatures", action="store_true")
903903
parsed_args = parser.parse_args(args=argv)
904904
similar_runner = Symilar(
905905
min_lines=parsed_args.duplicates,

0 commit comments

Comments
 (0)