Skip to content

Comments

Automate manpage generation from argparse definitions#11

Closed
Copilot wants to merge 1 commit intofeat/manpage-and-versionfrom
copilot/sub-pr-10
Closed

Automate manpage generation from argparse definitions#11
Copilot wants to merge 1 commit intofeat/manpage-and-versionfrom
copilot/sub-pr-10

Conversation

Copy link

Copilot AI commented Feb 17, 2026

Manpage generation was previously manual and prone to drift from actual CLI behavior. This PR automates generation from argparse definitions using argparse-manpage.

Changes

  • Makefile automation: Added targets for wheel, manpages, test, and clean. The wheel target depends on manpages to ensure manpage is regenerated on builds.

  • argparse integration: Extracted get_parser() function in __main__.py for argparse-manpage compatibility. The manpage is now generated from the actual argument parser definitions.

  • Documentation structure: Added man/extra-sections.man containing EXPRESSIONS, EXAMPLES, and other sections not derivable from argparse. The generated man/datetimecalc.1 combines argparse-derived content with these manual sections.

  • Build artifact handling: Added man/*.1 to .gitignore since manpages are now generated at build time, not committed to version control.

  • CI integration: Updated wheel.yml workflow to use make wheel instead of direct uv build calls.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copy link
Author

Copilot AI commented Feb 17, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/graphql
    • Triggering command: /usr/bin/gh gh pr view --json title,body (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Add manpage and --version flag for CLI usage Automate manpage generation from argparse definitions Feb 17, 2026
Copilot AI requested a review from actualben February 17, 2026 11:59
@actualben actualben closed this Feb 17, 2026
@actualben actualben deleted the copilot/sub-pr-10 branch February 17, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants