-
Notifications
You must be signed in to change notification settings - Fork 2
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
Use argparse-manpage (fix #18) #19
Use argparse-manpage (fix #18) #19
Conversation
Nice, it looks like a clean solution to me, I'm buying it! I suppose you also want to build BIDScoin manpages in the same way or? |
I've moved the content of your |
Yes, that’s cleaner—thanks. I had encountered problems when I tried putting the configuration in |
Absolutely. I still have some dependencies to deal with before I start actually packaging BIDSCoin for Fedora, but I’ll go ahead and make a PR for the man pages. Thanks for looking at my issues and PR’s. It’s been really helpful. |
It was not a typo of yours, the example in the README was wrong: |
That makes perfect sense in retrospect. I’m glad you figured it out. |
With the new |
At least when using a virtualenv, it gets installed somewhere sensible. Working in a checkout of b4078f0:
The venv is even set up such that |
Perhaps this commit makes your life a bit easier? And it is perhaps also of help to mention that the @musicinmybrain I edited this message (which you may not have seen if you reply via email) |
Thank you. That is, in fact, helpful. With the removal of |
Oh, that’s helpful, too. I hadn’t started to look at |
I made a start with implementing |
No, I’ve been distracted by Python 3.12 landing in Fedora Rawhide.
Sure! Feel free to ping me when you’d like me to work on it. |
I took a shot at using https://pypi.org/project/argparse-manpage/. This seems to work correctly. The result appears not quite as nice as hand-written, but more than good enough.
The purpose of moving argument parser creation into a different module is to minimize dependencies; anything that needs to be imported to create the man page would have to become part of the
build-system
requires
, so it’s nice to limit that to the standard library.Quibbles welcome.