-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a man page for pyp #20
Comments
Thanks for the suggestion! Unfortunately, it seems a little tricky to install man pages as part of a pip install, especially given that not all platforms use man pages and global installs would interact badly with e.g. virtualenvs. pyp supports
Note, you'll need to have the most recent version of pyp for help2man to work, since up until v0.3.2 I'd forgotten to add |
I'm not sure which platforms don't support man pages. I think it would be nice to have it as part of the package, and then packagers ( for Arch, Debian, etc ), can incorporate those man pages when creating their .deb, .rpm, etc. It doesn't necessarily need to be there for
That might be good enough for packagers actually. |
I'll get to this at some point. I'm going to hold off for a little bit, since a) few users will benefit as we can't install man pages with pip, b) |
Perhaps we should look at argparse-manpage, which can generate a manpage by looking at your ArgumentParser object. The output looks reasonable: Though, it seems like it re-flowed the text which is intended to be a bulleted list, which is not great.
I think this is possible, though hard to do portably. Look at the nose project for inspiration. If you run If you install pyp in a virtualenv, it will put the manpage inside the virtualenv, so I tried this on a Linux system, and it works, but it doesn't seem to work on my Mac. I could look into this further, if you'd like. |
Often when I'm writing on off shell scripts that are piped together, I forget various flags and have to refer to
man $PROGRAM
. Since I'm now usingpyp
quite often in my shell scripts, it would be fantastic if I could runman pyp
and see its documentation as well.The text was updated successfully, but these errors were encountered: