Skip to content

Pylint no longer support separating options from positional arguments with -- #7003

@phst

Description

@phst

Bug description

With Pylint 2.12, pylint -- file.py works as expected, with Pylint 2.14 it raises an error like "pylint: error: Unrecognized option found:". I guess that's related to the argparse migration.

Configuration

No response

Command used

pylint -- file.py

Pylint output

pylint: error: Unrecognized option found:

Expected behavior

The -- should separate options from positional arguments. In this case the invocation should have identical results to pylint file.py.

Pylint version

pylint 2.14.3
astroid 2.11.6
Python 3.9.12 (main, May  6 2022, 20:15:26) 
[GCC 11.2.0]

OS / Environment

Debian GNU/Linux

Additional dependencies

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ConfigurationRelated to configurationNeeds PRThis issue is accepted, sufficiently specified and now needs an implementationRegression

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions