Skip to content

Commit

Permalink
Fix #12 -- Remove exec name from pargparse
Browse files Browse the repository at this point in the history
We should not pass sys.argv[0] to argparse, since it's the executables
filename. It will be deteced as the files attribute, which it should not be.
  • Loading branch information
codingjoe committed Nov 18, 2019
1 parent e7f78ae commit 5d272b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relint.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def parse_diff(output):
return changed_content


def main(args=sys.argv):
def main(args=sys.argv[1:]):
args = parse_args(args)
paths = {
path
Expand Down

0 comments on commit 5d272b3

Please sign in to comment.