Commit ec659c59 authored by Javier Quinteros's avatar Javier Quinteros

Add argparse and logging.

parent 17fecc97
......@@ -18,4 +18,4 @@ Scripts to work with data generated by DAS systems.
Overview
--------
.. todo:: Documentation here...
Documentation here...
......@@ -16,8 +16,23 @@
# limitations under the Licence. #
###############################################################################
import argparse
import logging
def main():
pass
# Check verbosity in the output
msg = 'Read and convert waveforms generated by a DAS system.'
parser = argparse.ArgumentParser(description=msg)
parser.add_argument('-l', '--loglevel',
help='Verbosity in the output.',
choices=['CRITICAL', 'ERROR', 'WARNING', 'INFO',
'DEBUG'],
default='WARNING')
# parser.add_argument('-c', '--config',
# help='Config file to use.',
# default='../routing.cfg')
args = parser.parse_args()
logging.basicConfig(level=args.loglevel)
if __name__ == '__main__':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment