praiskup / argparse-manpage

Automatically build man-pages for your Python project
Apache License 2.0
40 stars 22 forks source link

see what is the issue in notes.secretsauce.net blog post #17

Closed praiskup closed 2 years ago

praiskup commented 5 years ago

http://notes.secretsauce.net/notes/2018/10/07_generating-manpages-from-python-and-argparse.html

praiskup commented 2 years ago

The post mentions this is needed:

  def parse_args():
+    import argparse

This should be fixed by: 74add0721dda284a212e0a56cb04c33bd191464b

But

-    return parser.parse_args()
+    return parser

Can not be avoided. We really need the argparse/optparse object, not the options.

There's a complaint that our testing in-git wrapper script doesn't work, but that has been fixed by f84a41ff4d69cd434f8d281f996527e2ab455067. Nobody should run that script for real.

There's a relation to some output inconsistencies which I'm unable to reproduce.