def pyltc_entry_point(argv=None, target_factory=None):
"""
Calls the parseargs stuff to make sure all common arguments
are handled properly, then executes the default plugin entry point.
:param argv: list - the command line arguments as provided by `sys.argv[1:]`
:return: None
"""
TrafficControl.init()
try:
simnet.plugin_main(argv, target_factory)
except ParserError as err:
print("ltc.py: error:", err, file=sys.stderr)
return 2
评论列表
文章目录