

def main():
    (opts, args) = parse_options()
    source = sanitize(args[0])
    target = sanitize(args[1])
    if (type(source) is not tuple):
        print('ERROR: source address must specify port (address:port)')
        raise SystemExit((- 1))
    if (type(target) is not tuple):
        print('ERROR: target address must specify port (address:port)')
        raise SystemExit((- 1))
    system = PortForwarder(source, target)
    if args.daemon:
        Daemon('portforward.pid').register(system)
    if opts.debug:
        Debugger().register(system)
    system.run()

dataset/ETHPy150Open circuits/circuits/examples/portforward.py main/VarMisuse@105/151 `opts`->`args`