Printing stderr-redirection warning to user via --help for rawshell argument

This commit is contained in:
tuxuser 2017-11-25 21:14:28 +01:00
parent 61e59e2a27
commit 1ef1741bff

View file

@ -427,7 +427,8 @@ parser = argparse.ArgumentParser(description='LG LAF Download Mode utility')
parser.add_argument("--skip-hello", action="store_true", parser.add_argument("--skip-hello", action="store_true",
help="Immediately send commands, skip HELO message") help="Immediately send commands, skip HELO message")
parser.add_argument('--rawshell', action="store_true", parser.add_argument('--rawshell', action="store_true",
help="Execute shell commands as-is, needed on recent devices") help="Execute shell commands as-is, needed on recent devices. "
"CAUTION: stderr output is not redirected!")
parser.add_argument("-c", "--command", help='Shell command to execute') parser.add_argument("-c", "--command", help='Shell command to execute')
parser.add_argument("--serial", metavar="PATH", dest="serial_path", parser.add_argument("--serial", metavar="PATH", dest="serial_path",
help="Path to serial device (e.g. COM4).") help="Path to serial device (e.g. COM4).")