Skip to content

Commit

Permalink
cli/version: show only libpath rather than whole loader info
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Nov 15, 2023
1 parent 81f24de commit 45e8f0c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pypdfium2/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ def get_parser():
main_parser.add_argument(
"--version", "-v",
action = "version",
version = \
f"pypdfium2 {PYPDFIUM_INFO}\n" + f"pdfium {PDFIUM_INFO}\n" + \
"\n".join([f" {k}: {v!r}" for k, v in loader_info.items()]),
version = f"pypdfium2 {PYPDFIUM_INFO}\n" f"pdfium {PDFIUM_INFO} at {loader_info['libpath']}"
)
subparsers = main_parser.add_subparsers(dest="subcommand")

Expand Down

0 comments on commit 45e8f0c

Please sign in to comment.