Embedding version in command-line program
I have written a program, which I can run on the command-line thus
and the get the version, which is currently derived from a variable in
the main module file.
However, I also have the version in an __init__.py file and in a
pyproject.toml (as I'm using poetry, otherwise this would be in
What's the best way of reducing these three places where the version is
defined to a single one?
This signature is currently under construction.