(parser, requirenodeid=False)
| 77 | |
| 78 | |
| 79 | def parse_args(parser, requirenodeid=False): |
| 80 | args = parser.parse_args() |
| 81 | logging.basicConfig(format="%(levelname)s: %(message)s", level=getattr(logging, args.loglevel)) |
| 82 | if args.url and '://' not in args.url: |
| 83 | logging.info("Adding default scheme %s to URL %s", ua.OPC_TCP_SCHEME, args.url) |
| 84 | args.url = ua.OPC_TCP_SCHEME + '://' + args.url |
| 85 | if requirenodeid: |
| 86 | _require_nodeid(parser, args) |
| 87 | return args |
| 88 | |
| 89 | |
| 90 | def get_node(client, args): |
no test coverage detected