Skip to content

Conversation

@sverhoeven
Copy link
Member

Refs #6

@sverhoeven sverhoeven marked this pull request as ready for review January 14, 2026 12:24
Format is checked in ci workflow but not in dev docs.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds support for argument parsers that don't have sub-commands, addressing issue #6. Previously, the argparser_to_markdown function assumed all parsers had subcommands, but this change allows it to handle simple parsers with only top-level arguments.

Changes:

  • Added early return logic when no subparsers are present in the parser
  • Added comprehensive test coverage for parsers without subcommands
  • Updated version from 0.1.2 to 0.1.3
  • Improved documentation formatting sections in README.dev.md

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/mkdocs_rich_argparse/init.py Added conditional check to handle parsers without subcommands and bumped version to 0.1.3
tests/test_plugin.py Added new test fixture and test case to verify correct handling of parsers without subcommands
README.dev.md Added proper section header for linting/formatting and documented ruff format command
CONTRIBUTING.md Corrected release instructions to remove reference to pyproject.toml

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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