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:
parent
c04bc9634a
commit
44069b34ef
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user