| 391 | |
| 392 | |
| 393 | def print_help(config): |
| 394 | print |
| 395 | print "pyLoadCli Copyright (c) 2008-2011 the pyLoad Team" |
| 396 | print |
| 397 | print "Usage: [python] pyLoadCli.py [options] [command]" |
| 398 | print |
| 399 | print "<Commands>" |
| 400 | print "See pyLoadCli.py -c for a complete listing." |
| 401 | print |
| 402 | print "<Options>" |
| 403 | print " -i, --interactive", " Start in interactive mode" |
| 404 | print |
| 405 | print " -u, --username=", " " * 2, "Specify Username" |
| 406 | print " --pw=<password>", " " * 2, "Password" |
| 407 | print " -a, --address=", " " * 3, "Specify address (current=%s)" % config["addr"] |
| 408 | print " -p, --port", " " * 7, "Specify port (current=%s)" % config["port"] |
| 409 | print |
| 410 | print " -l, --language", " " * 3, "Set user interface language (current=%s)" % config["language"] |
| 411 | print " -h, --help", " " * 7, "Display this help screen" |
| 412 | print " -c, --commands", " " * 3, "List all available commands" |
| 413 | print |
| 414 | |
| 415 | |
| 416 | def print_packages(data): |