(parser)
| 22 | |
| 23 | |
| 24 | def 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 | |
| 43 | def add_common_args(parser, default_node='i=84', require_node=False): |
no outgoing calls
no test coverage detected