Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add version cmd line option (-V, --version) #30

Closed
lfvjimisola opened this issue Oct 25, 2023 · 2 comments
Closed

Add version cmd line option (-V, --version) #30

lfvjimisola opened this issue Oct 25, 2023 · 2 comments

Comments

@lfvjimisola
Copy link

Since, Python 3.8 the version is available using from importlib.metadata import version and then

        argument_parser.add_argument(
            "-V",
            "--version",
            action="version",
            version=version("reqstool"),
        )

We can use this version string for #25 as well.

@lfvjimisola
Copy link
Author

@hamnis I'll provide a PR this week for probably this issue and #25.

@hamnis
Copy link
Owner

hamnis commented Oct 25, 2023

@lfvjimisola Nice :)

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

No branches or pull requests

2 participants