Show
Ignore:
Timestamp:
05/13/08 15:32:41 (7 months ago)
Author:
sylvain
Message:

minor modification

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • oss/headstock/headstock/example/simplechat/simplechat.py

    r672 r674  
    672672        parser.set_defaults(username=None) 
    673673        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") 
    675675        parser.set_defaults(password=None) 
    676676        parser.add_option("-r", "--register", action="store_true", dest="register", 
     
    686686    def run(): 
    687687        options = parse_commandline() 
     688        if not options.password: 
     689            from getpass import getpass 
     690            options.password = getpass() 
    688691        host, port = options.address.split(':') 
    689692        client = Client(unicode(options.username),