11 lines
664 B
Python
11 lines
664 B
Python
def proto_args(parser, std_parser, module_parser):
|
|
vnc_parser = parser.add_parser("vnc", help="own stuff using VNC", parents=[std_parser, module_parser])
|
|
vnc_parser.add_argument("--port", type=int, default=5900, help="Custom VNC port")
|
|
vnc_parser.add_argument("--vnc-sleep", type=int, default=5, help="VNC Sleep on socket connection to avoid rate limit")
|
|
|
|
egroup = vnc_parser.add_argument_group("Screenshot", "VNC Server")
|
|
egroup.add_argument("--screenshot", action="store_true", help="Screenshot VNC if connection success")
|
|
egroup.add_argument("--screentime", type=int, default=5, help="Time to wait for desktop image")
|
|
|
|
return parser
|