Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed May 9, 2022
1 parent d808d3f commit 623c2ee
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,23 @@ https://pep-previews--2440.org.readthedocs.build

<!-- [[[end]]] -->

### Open a BPO issue in the browser

Issues from [bugs.python.org](https://bugs.python.org/) have been migrated to
[GitHub issues](https://github.com/python/cpython/issues) and have new numbers. This
command will open the redirect page to take you to the new issue.

<!-- [[[cog run("bpo 46208") ]]] -->

```console
$ bpo 46208
https://bugs.python.org/issue?@action=redirect&bpo=46208
```

<!-- [[[end]]] -->

This redirects to https://github.com/python/cpython/issues/90366

### Help

<!-- [[[cog run("pep --help") ]]] -->
Expand Down
3 changes: 2 additions & 1 deletion src/pepotron/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def main() -> None:

def bpo() -> None:
parser = argparse.ArgumentParser(
description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter
description="Open this BPO in the browser",
formatter_class=argparse.RawDescriptionHelpFormatter,
)
parser.add_argument("bpo", type=int, help="BPO number")
parser = add_common_arguments(parser)
Expand Down

0 comments on commit 623c2ee

Please sign in to comment.