Centralize release version identity
This commit is contained in:
parent
c3552f2328
commit
47ac329947
10 changed files with 64 additions and 7 deletions
|
|
@ -8,6 +8,7 @@ import sys
|
|||
import webbrowser
|
||||
from pathlib import Path
|
||||
|
||||
from ._version import __version__
|
||||
from .application import CanonicalApplicationService, GenericCanonicalApplier
|
||||
from .client_config import CLIENT_NAMES, generate_client_configuration
|
||||
from .context import compile_context
|
||||
|
|
@ -25,6 +26,7 @@ from .viewer_manager import ViewerManagerClient
|
|||
|
||||
def _parser() -> argparse.ArgumentParser:
|
||||
parser = argparse.ArgumentParser(prog="docforge")
|
||||
parser.add_argument("--version", action="version", version=f"%(prog)s {__version__}")
|
||||
parser.add_argument("--project-root", type=Path)
|
||||
parser.add_argument(
|
||||
"--diagnostics",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue