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.
Difficulty: Beginner
Add a
--versionflag to the CLI that prints the package version.Where to look:
main.py, thecli()function andargparsesetup.Hint: Use
importlib.metadata.version("location-tracker")to get the version at runtime instead of hardcoding it.