1
0
mirror of https://github.com/calebstewart/pwncat.git synced 2024-11-27 19:04:15 +01:00

Ensured help was printed with no arguments

This commit is contained in:
Caleb Stewart 2020-10-04 17:48:37 -04:00
parent c04bc9634a
commit 44069b34ef

View File

@ -180,6 +180,9 @@ class Command(CommandDefinition):
try_reconnect = True
elif host == "" or host == "0.0.0.0":
protocol = "bind://"
elif args.connection_string is None:
self.parser.print_help()
return
else:
protocol = "connect://"
try_reconnect = True