Changeset 93 for pykoticon

Show
Ignore:
Timestamp:
01/27/06 09:51:00 (19 years ago)
Author:
jerome
Message:

Better help for testers

Location:
pykoticon/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykoticon/trunk/bin/pykoticon

    r92 r93  
    282282            print "0.3" 
    283283        elif arg in ("-h", "--help") :     
    284             print "usage : pykoticon printserver_hostname localport" 
     284            sys.stderr.write("usage : pykoticon  pykota_server_hostname_or_ip_address  localTCPPort\n") 
    285285        else : 
    286286            main(*sys.argv[1:3]) 
    287287    else :     
    288         main("localhost", "7654") 
     288        sys.stderr.write("usage : pykoticon  pykota_server_hostname_or_ip_address  localTCPPort\n") 
  • pykoticon/trunk/tests/test.py

    r91 r93  
    3838     
    3939if __name__ == "__main__" : 
    40     main(sys.argv[1:]) 
     40    if len(sys.argv) != 3 : 
     41        sys.stderr.write("usage : %s printing_client_hostname_or_ip_address printing_client_TCPPort\n" % sys.argv[0]) 
     42    else :     
     43        main(sys.argv[1:])