parser=ArgumentParser(description="The FEMTO watchdog (FEMTO: LOFAR2.0 Faulty Element Measurement To Opc UA) monitors files that are written to. Start it like this: ./femto.py 127.0.0.1:55555 test/ \"foo.txt\" and it will start an OPC UA server on the host's local interface on the private port 55555. As soon as the contents of the file \"test/foo.txt\" are modified, the underlying monitoring library will parse the file contents and provide the resulting data as OPC UA monitor points.")
parser.add_argument('url',help="The OPC UA server's IP address or hostname and the port, both separated by a colon. Example: \"127.0.0.1:55555\"",default="127.0.0.1:55555")
parser.add_argument('path',help="The file system path in which the monitored file or files are present. The file or files that will be monitored must exist in this directory. Example: \"test/"", default="test/")
parser.add_argument('path',help="The file system path in which the monitored file or files are present. The file or files that will be monitored must exist in this directory. Example: \"test/\"",default="test/")
parser.add_argument('expected_filename',help="Only files that match the specified regular expression will be monitored. Examples: \"foo.txt\" or \"fo*.txt\"",default="foo.txt")
parser.add_argument('-v',help='Switch on verbose logging.',action='store_true',default=False)