From 1a64ccdc7ffb2fcbec7948d61f09fe381c0e453e Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Thu, 8 May 2025 20:28:41 -0400 Subject: [PATCH] fix: show command name instead of full path in --help Signed-off-by: Ihar Hrachyshka --- nixpkgs_review/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixpkgs_review/__init__.py b/nixpkgs_review/__init__.py index 01ef0e6e..8bc8ede0 100644 --- a/nixpkgs_review/__init__.py +++ b/nixpkgs_review/__init__.py @@ -1,11 +1,12 @@ import sys +from pathlib import Path from . import cli def main() -> None: try: - command = sys.argv[0] + command = Path(sys.argv[0]).name args = sys.argv[1:] cli.main(command, args) except KeyboardInterrupt: