Skip to content

Commit

Permalink
Accept and ignore -m for compatibility with the python interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
bdarnell committed May 29, 2011
1 parent 5c3d658 commit c9342aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions auto2to3.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ def main():
parser = argparse.ArgumentParser()
parser.add_argument('--package', action='append')
parser.add_argument('--dir', action='append')
# accept and ignore -m for compatibility with the python interpreter
parser.add_argument('-m', action='store_true')
parser.add_argument('main')
args, rest = parser.parse_known_args()
if args.package:
Expand Down

0 comments on commit c9342aa

Please sign in to comment.