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:
parent
0cd9a9b64f
commit
b8d7876a97
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue