From 800190760759f35a545948a12417952451e7891f Mon Sep 17 00:00:00 2001 From: Justin DuJardin Date: Fri, 23 Apr 2021 16:54:54 -0700 Subject: [PATCH] feat(cli): add version number to cli help string (#55) --- README.md | 2 +- pathy/cli.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 65d0590..a8acb08 100644 --- a/README.md +++ b/README.md @@ -412,7 +412,7 @@ client library prefers. # CLI -Pathy command line interface. +Pathy command line interface. (v0.5.1) **Usage**: diff --git a/pathy/cli.py b/pathy/cli.py index b7b37b8..0f4ab1f 100644 --- a/pathy/cli.py +++ b/pathy/cli.py @@ -5,8 +5,9 @@ import typer from . import BasePath, FluidPath, Pathy +from .about import __version__ -app: typer.Typer = typer.Typer(help="Pathy command line interface.") +app: typer.Typer = typer.Typer(help=f"Pathy command line interface. (v{__version__})") @app.command()