Changeset 674 for oss/headstock/headstock/example/simplechat
- Timestamp:
- 05/13/08 15:32:41 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
oss/headstock/headstock/example/simplechat/simplechat.py
r672 r674 672 672 parser.set_defaults(username=None) 673 673 parser.add_option("-p", "--password", action="store", dest="password", 674 help="XMPP password ")674 help="XMPP password. You may also be prompted for it if you do not pass this parameter") 675 675 parser.set_defaults(password=None) 676 676 parser.add_option("-r", "--register", action="store_true", dest="register", … … 686 686 def run(): 687 687 options = parse_commandline() 688 if not options.password: 689 from getpass import getpass 690 options.password = getpass() 688 691 host, port = options.address.split(':') 689 692 client = Client(unicode(options.username),
