spulec / pep8ify

A library that modifies python source code to conform to pep8.
Apache License 2.0
118 stars 12 forks source link

--help implies user should invoke 2to3, not pep8ify #13

Open brainwane opened 11 years ago

brainwane commented 11 years ago

I just installed pep8ify today and found it very useful; thank you!

When I look for help at the command line:

$ pep8ify -h Usage: 2to3 [options] file|dir ...

I have searched around in the repo and cannot figure out where the help message is being generated (so I can give you a pull request to change '2to3' to 'pep8ify'). Help?

brainwane commented 11 years ago

I'm using pep8ify version 0.0.8, or so pip freeze tells me.

spulec commented 11 years ago

Hi Sumana,

pep8ify is a sublass of the python builtin 2to3 command. You can look in the 2to3 main command (http://hg.python.org/cpython/file/123804a72a8f/Lib/lib2to3/main.py) too see what is being called in pep8ify. You would probably need to recreate (/call) the main command and overwrite the necessary options.

It would definitely take some work, but any time you donate would be greatly appreciated.