We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
diffpy.apps
1 parent a8ffd7b commit ff4856dCopy full SHA for ff4856d
3 files changed
pyproject.toml
@@ -51,6 +51,7 @@ exclude = [] # exclude packages matching these glob patterns (empty by default)
51
namespaces = false # to disable scanning PEP 420 namespaces (true by default)
52
53
[project.scripts]
54
+"diffpy.apps" = "diffpy.apps.apps:main"
55
"diffpy.app" = "diffpy.apps.apps:main"
56
57
[tool.setuptools.dynamic]
src/diffpy/apps/apps.py
@@ -29,8 +29,8 @@ def main():
29
30
parser.add_argument(
31
"--version",
32
- action="store_true",
33
- help="Show the program's version number and exit",
+ action="version",
+ version=f"diffpy.apps {__version__}",
34
)
35
apps_parsers = parser.add_subparsers(
36
title="Available applications",
src/diffpy/apps/functions.py
0 commit comments