fix modeslive --help bug
This commit is contained in:
parent
7348a10f1b
commit
0d7f628f3c
@ -12,9 +12,6 @@ from pyModeS.streamer.screen import Screen
|
|||||||
from pyModeS.streamer.source import NetSource, RtlSdrSource
|
from pyModeS.streamer.source import NetSource, RtlSdrSource
|
||||||
|
|
||||||
|
|
||||||
# redirect all stdout to null, avoiding messing up with the screen
|
|
||||||
sys.stdout = open(os.devnull, "w")
|
|
||||||
|
|
||||||
support_rawtypes = ["raw", "beast", "skysense"]
|
support_rawtypes = ["raw", "beast", "skysense"]
|
||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
@ -26,8 +23,9 @@ parser.add_argument(
|
|||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--connect",
|
"--connect",
|
||||||
help="Define server, port and data type. Supported data types are: %s"
|
help="Define server, port and data type. Supported data types are: {}".format(
|
||||||
% support_rawtypes,
|
support_rawtypes
|
||||||
|
),
|
||||||
nargs=3,
|
nargs=3,
|
||||||
metavar=("SERVER", "PORT", "DATATYPE"),
|
metavar=("SERVER", "PORT", "DATATYPE"),
|
||||||
default=None,
|
default=None,
|
||||||
@ -86,6 +84,10 @@ if DUMPTO is not None:
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
|
# redirect all stdout to null, avoiding messing up with the screen
|
||||||
|
sys.stdout = open(os.devnull, "w")
|
||||||
|
|
||||||
|
|
||||||
raw_pipe_in, raw_pipe_out = multiprocessing.Pipe()
|
raw_pipe_in, raw_pipe_out = multiprocessing.Pipe()
|
||||||
ac_pipe_in, ac_pipe_out = multiprocessing.Pipe()
|
ac_pipe_in, ac_pipe_out = multiprocessing.Pipe()
|
||||||
exception_queue = multiprocessing.Queue()
|
exception_queue = multiprocessing.Queue()
|
||||||
|
Loading…
Reference in New Issue
Block a user