(self)
| 154 | exit() |
| 155 | |
| 156 | def print_help(self): |
| 157 | print "" |
| 158 | print "pyLoad v%s 2008-2011 the pyLoad Team" % CURRENT_VERSION |
| 159 | print "" |
| 160 | if sys.argv[0].endswith(".py"): |
| 161 | print "Usage: python pyLoadCore.py [options]" |
| 162 | else: |
| 163 | print "Usage: pyLoadCore [options]" |
| 164 | print "" |
| 165 | print "<Options>" |
| 166 | print " -v, --version", " " * 10, "Print version to terminal" |
| 167 | print " -c, --clear", " " * 12, "Delete all saved packages/links" |
| 168 | #print " -a, --add=<link/list>", " " * 2, "Add the specified links" |
| 169 | print " -u, --user", " " * 13, "Manages users" |
| 170 | print " -d, --debug", " " * 12, "Enable debug mode" |
| 171 | print " -s, --setup", " " * 12, "Run Setup Assistent" |
| 172 | print " --configdir=<dir>", " " * 6, "Run with <dir> as config directory" |
| 173 | print " -p, --pidfile=<file>", " " * 3, "Set pidfile to <file>" |
| 174 | print " --changedir", " " * 12, "Change config dir permanently" |
| 175 | print " --daemon", " " * 15, "Daemonmize after start" |
| 176 | print " --no-remote", " " * 12, "Disable remote access (saves RAM)" |
| 177 | print " --status", " " * 15, "Display pid if running or False" |
| 178 | print " --clean", " " * 16, "Remove .pyc/.pyo files" |
| 179 | print " -q, --quit", " " * 13, "Quit running pyLoad instance" |
| 180 | print " -h, --help", " " * 13, "Display this help screen" |
| 181 | print "" |
| 182 | |
| 183 | def toggle_pause(self): |
| 184 | if self.threadManager.pause: |
no outgoing calls
no test coverage detected