Skip to content

Add --version flag to CLI #7

Description

@dcondrey

Difficulty: Beginner

Add a --version flag to the CLI that prints the package version.

$ location-tracker --version
location-tracker 1.2.0

Where to look: main.py, the cli() function and argparse setup.

Hint: Use importlib.metadata.version("location-tracker") to get the version at runtime instead of hardcoding it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions