Skip to content

Commit 5d272b3

Browse files
committed
Fix #12 -- Remove exec name from pargparse
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.
1 parent e7f78ae commit 5d272b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

relint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def parse_diff(output):
209209
return changed_content
210210

211211

212-
def main(args=sys.argv):
212+
def main(args=sys.argv[1:]):
213213
args = parse_args(args)
214214
paths = {
215215
path

0 commit comments

Comments
 (0)