Skip to content

Conversation

@williamjameshandley
Copy link
Owner

Summary

  • Adds --version flag to both py2nb and nb2py command-line tools
  • Implements get_version() function that reads version from README.rst
  • Updates argument parsing to handle optional script_name when using --version
  • Updates README documentation with new command-line options
  • Bumps version to 1.2.0 for new feature

Test plan

  • Verified py2nb --version and nb2py --version work correctly
  • Confirmed normal conversion functionality still works
  • All 16 tests pass
  • Help text shows new --version option
  • Round-trip conversion (py2nb -> nb2py -> py2nb) works correctly

Usage

py2nb --version          # Shows: py2nb 1.2.0
nb2py --version          # Shows: nb2py 1.2.0

This addresses the common need for users to check which version of py2nb they have installed, especially useful for debugging and ensuring compatibility.

🤖 Generated with Claude Code

- Add get_version() function to read version from README.rst
- Add --version argument to both py2nb and nb2py command-line tools
- Update argument parsing to make script_name optional when using --version
- Update README with new command-line options
- Bump version to 1.2.0 for new feature

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
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