small typo and structure fixes
This commit is contained in:
parent
51cbfff880
commit
7d0134ea04
1 changed files with 6 additions and 5 deletions
11
linspector
11
linspector
|
|
@ -1,14 +1,15 @@
|
||||||
#!/usr/bin/python2.7 -tt
|
#!/usr/bin/python2.7 -tt
|
||||||
|
|
||||||
VERSION = "0.2/TETRIS"
|
__version__ = "0.2/TETRIS"
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import time
|
||||||
|
import logging
|
||||||
|
import subprocess as sp
|
||||||
from lib.core.job import JobInfo
|
from lib.core.job import JobInfo
|
||||||
from lib.core.logger import Logger
|
from lib.core.logger import Logger
|
||||||
from lib.config.config import Config
|
from lib.config.config import Config
|
||||||
from apscheduler.scheduler import Scheduler
|
from apscheduler.scheduler import Scheduler
|
||||||
import time
|
|
||||||
import logging
|
|
||||||
import subprocess as sp
|
|
||||||
|
|
||||||
|
|
||||||
def parseArgs():
|
def parseArgs():
|
||||||
|
|
@ -19,7 +20,7 @@ def parseArgs():
|
||||||
|
|
||||||
parser.add_argument("action", choices=["start", "stop", "restart", "attach"],
|
parser.add_argument("action", choices=["start", "stop", "restart", "attach"],
|
||||||
help="defines if linspector should beeing attached, started, stopped or restarted.")
|
help="defines if linspector should beeing attached, started, stopped or restarted.")
|
||||||
parser.add_argument("--version", action="version", version="%(prog)s " + str(VERSION))
|
parser.add_argument("--version", action="version", version="%(prog)s " + str(__version__))
|
||||||
parser.add_argument("-c", "--config", default="./linspector.json",
|
parser.add_argument("-c", "--config", default="./linspector.json",
|
||||||
help="select configfile to use")
|
help="select configfile to use")
|
||||||
parser.add_argument("-l", "--logfile", default="./log/linspector.log", metavar="FILE",
|
parser.add_argument("-l", "--logfile", default="./log/linspector.log", metavar="FILE",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue