Pull argparse configuration out of a CLI tool and write it as Markdown. Great for embedding in a README.md with cog.
Project description
Pull argparse configuration out of a CLI tool and write it as Markdown.
Great for embedded in a README.md with cog.
Possible invocation options:
# entrypoint command, dotted module
uv run argparse-help-markdown -m tests.data.example
# script, script
argparse_help_markdown.py script.py
# import, function, custom writer
from argparse_help_markdown import run_script
with open("out.md", mode="w") as f:
run_script("mytool.py", include_usage=True, writer=f)
usage: argparse_help_markdown.py script.py
| Options | Values | Help |
|---|---|---|
| positional arguments | ||
filename |
Optional. | Path to the subject script. |
| options | ||
-h --help |
Flag. | show this help message and exit |
--usage |
Flag. | Emit the terse usage info in triple-ticks. Excluded by default. |
--write |
Optional. | Write to named file instead of stdout. |
-m --module |
Optional. | Run as module. |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file argparse_help_markdown-0.1.1-py3-none-any.whl.
File metadata
- Download URL: argparse_help_markdown-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7280468c77fcc90086b292e16489252193d0cdd09a72177774691920bee96059
|
|
| MD5 |
745d3f923f7f2cf1807a6fed8f66e542
|
|
| BLAKE2b-256 |
53cdd951be0cbe83d8260ac1a097c3054249c0ac11311ff72a82459f9a02961f
|
Provenance
The following attestation bundles were made for argparse_help_markdown-0.1.1-py3-none-any.whl:
Publisher:
publish.yaml on ellieayla/argparse-help-markdown
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
argparse_help_markdown-0.1.1-py3-none-any.whl -
Subject digest:
7280468c77fcc90086b292e16489252193d0cdd09a72177774691920bee96059 - Sigstore transparency entry: 1053822589
- Sigstore integration time:
-
Permalink:
ellieayla/argparse-help-markdown@071df7dcb6e4866bed2293ab35d604b9a7e9cf8f -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/ellieayla
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@071df7dcb6e4866bed2293ab35d604b9a7e9cf8f -
Trigger Event:
push
-
Statement type: