Fix `--version` output

As noted by @DanaEpp in #217, `--version` is outputting the wrong
version number. This is due to it passing the old package name to
``importlib.metadata.version()``. This actually causes an unhandled
exception if you don't also have the `pwncat` package installed.
This commit is contained in:
Caleb Stewart 2021-11-28 21:19:03 -05:00
parent 0cd9a9b64f
commit b8d7876a97
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ def main():
# Print the version number and exit.
if args.version:
print(importlib.metadata.version("pwncat"))
print(importlib.metadata.version("pwncat-cs"))
return
# Create the session manager