From e0db5bfa547aa379dc10c7bbc8b1cc54f0819d27 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 27 Nov 2011 19:13:26 +0100 Subject: closed #435 --- pyLoadCore.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'pyLoadCore.py') diff --git a/pyLoadCore.py b/pyLoadCore.py index 47fb419e7..97c9ec64b 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -83,14 +83,17 @@ class Core(object): if len(argv) > 1: try: - options, args = getopt(argv[1:], 'vchdusq', - ["version", "clear", "clean", "help", "debug", "user", "setup", "configdir=", "changedir", "daemon", - "quit", "status", "no-remote"]) + options, args = getopt(argv[1:], 'vchdusqp:', + ["version", "clear", "clean", "help", "debug", "user", + "setup", "configdir=", "changedir", "daemon", + "quit", "status", "no-remote","pidfile="]) for option, argument in options: if option in ("-v", "--version"): print "pyLoad", CURRENT_VERSION exit() + elif option in ("-p", "--pidfile"): + self.pidfile = argument elif option == "--daemon": self.daemon = True elif option in ("-c", "--clear"): @@ -159,9 +162,10 @@ class Core(object): print " -d, --debug", " " * 12, "Enable debug mode" print " -s, --setup", " " * 12, "Run Setup Assistent" print " --configdir=", " " * 6, "Run with as config directory" + print " -p, --pidfile=", " " * 3, "Set pidfile to " print " --changedir", " " * 12, "Change config dir permanently" print " --daemon", " " * 15, "Daemonmize after start" - print " --no-remote", " " * 14, "Disable remote access (saves RAM)" + print " --no-remote", " " * 12, "Disable remote access (saves RAM)" print " --status", " " * 15, "Display pid if running or False" print " --clean", " " * 16, "Remove .pyc/.pyo files" print " -q, --quit", " " * 13, "Quit running pyLoad instance" -- cgit v1.2.3