Skip to content

Commit

Permalink
Try out hint from @MuellerSeb
Browse files Browse the repository at this point in the history
  • Loading branch information
lucc committed Apr 6, 2023
1 parent e445546 commit c68d3bc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
venv/
2 changes: 1 addition & 1 deletion conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']

man_pages = [ ('man', 'prog', 'bug example', '', 1) ]
man_pages = [ ('man', 'bug-example-1', 'bug example', '', 1) ]


# -- Options for HTML output -------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion example/cli.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import argparse
def parser():
p = argparse.ArgumentParser()
p = argparse.ArgumentParser(prog="bug-example-3")
s = p.add_subparsers()
s.add_parser("foo")
return p
2 changes: 1 addition & 1 deletion man.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ Bug Example
.. sphinx_argparse_cli::
:module: example.cli
:func: parser
:prog: bug-example
:prog: bug-example-2
:title: Synopsis

0 comments on commit c68d3bc

Please sign in to comment.