MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / parse_args

Function parse_args

opcua/tools.py:79–87  ·  view source on GitHub ↗
(parser, requirenodeid=False)

Source from the content-addressed store, hash-verified

77
78
79def 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
90def get_node(client, args):

Callers 9

uareadFunction · 0.85
uawriteFunction · 0.85
ualsFunction · 0.85
uasubscribeFunction · 0.85
uaclientFunction · 0.85
uadiscoverFunction · 0.85
uahistoryreadFunction · 0.85
uacallFunction · 0.85
uageneratestructsFunction · 0.85

Calls 1

_require_nodeidFunction · 0.85

Tested by

no test coverage detected