diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-01 20:28:32 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-01 20:28:32 +0100 |
commit | 731535b7170e54303634d7ffc6a862da9958b866 (patch) | |
tree | 7f20f2d52f11b9f098806ce805db7cf0c093bba3 /pyLoadCore.py | |
parent | fixed Megaupload, added Uploading.com beta, closed #177 #182 (diff) | |
download | pyload-731535b7170e54303634d7ffc6a862da9958b866.tar.xz |
--status option, improved cli commands
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index cee0271ae..ccc43bbbc 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -87,7 +87,7 @@ class Core(object): if len(argv) > 1: try: options, args = getopt(argv[1:], 'vca:hdusq', - ["version", "clear", "add=", "help", "debug", "user", "setup", "configdir=", "changedir", "daemon", "quit"]) + ["version", "clear", "add=", "help", "debug", "user", "setup", "configdir=", "changedir", "daemon", "quit", "status"]) for option, argument in options: if option in ("-v", "--version"): @@ -134,6 +134,10 @@ class Core(object): elif option in ("-q", "--quit"): self.quitInstance() exit() + elif option in ("--status"): + print self.isAlreadyRunning() + exit() + except GetoptError: print 'Unknown Argument(s) "%s"' % " ".join(argv[1:]) self.print_help() @@ -155,6 +159,7 @@ class Core(object): print " --configdir=<dir>", " " * 6, "Run with <dir> as config directory" print " --changedir", " "* 12, "Change config dir permanently" print " --daemon", " " * 15, "Daemonize after start" + print " --status", " " * 15, "Display pid if running or False" print " -q, --quit", " " * 13, "Try to quit running pyLoad" print " -h, --help", " " * 13, "Display this help screen" print "" |