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

Function _require_nodeid

opcua/tools.py:71–76  ·  view source on GitHub ↗
(parser, args)

Source from the content-addressed store, hash-verified

69
70
71def _require_nodeid(parser, args):
72 # check that a nodeid has been given explicitly, a bit hackish...
73 if args.nodeid == "i=84" and args.path == "":
74 parser.print_usage()
75 print("{0}: error: A NodeId or BrowsePath is required".format(parser.prog))
76 sys.exit(1)
77
78
79def parse_args(parser, requirenodeid=False):

Callers 2

parse_argsFunction · 0.85
uasubscribeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected