From 7f40854bb0ff10f52a9634beb8244f3e8090e42e Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Thu, 22 Aug 2024 06:50:14 +0200 Subject: [PATCH] Update pylint/checkers/symilar.py Co-authored-by: Roger Sheu <78449574+rogersheu@users.noreply.github.com> --- pylint/checkers/symilar.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pylint/checkers/symilar.py b/pylint/checkers/symilar.py index e74c0fbba7..d5f2bcada3 100644 --- a/pylint/checkers/symilar.py +++ b/pylint/checkers/symilar.py @@ -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,