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

Function add_minimum_args

opcua/tools.py:24–40  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

22
23
24def add_minimum_args(parser):
25 parser.add_argument("-u",
26 "--url",
27 help="URL of OPC UA server (for example: opc.tcp://example.org:4840)",
28 default='opc.tcp://localhost:4840',
29 metavar="URL")
30 parser.add_argument("-v",
31 "--verbose",
32 dest="loglevel",
33 choices=['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'],
34 default='WARNING',
35 help="Set log level")
36 parser.add_argument("--timeout",
37 dest="timeout",
38 type=int,
39 default=1,
40 help="Set socket timeout (NOT the diverse UA timeouts)")
41
42
43def add_common_args(parser, default_node='i=84', require_node=False):

Callers 2

add_common_argsFunction · 0.85
uadiscoverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected