mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-23 19:19:53 +00:00
Made echo client print help message.
If the jid and password are not supplied, the options list will be displayed instead of hanging trying to connect to a nonexistant server.
This commit is contained in:
parent
cdbc0570ca
commit
afeb8f3f7c
1 changed files with 4 additions and 0 deletions
|
@ -105,6 +105,10 @@ if __name__ == '__main__':
|
|||
logging.basicConfig(level=opts.loglevel,
|
||||
format='%(levelname)-8s %(message)s')
|
||||
|
||||
if None in [opts.jid, opts.password]:
|
||||
optp.print_help()
|
||||
sys.exit(1)
|
||||
|
||||
# Setup the EchoBot and register plugins. Note that while plugins may
|
||||
# have interdependencies, the order in which you register them does
|
||||
# not matter.
|
||||
|
|
Loading…
Reference in a new issue