bicycle-statistics/bicycle_statistics/__main__.py
Thomas Klaehn 492c67bec3 bicycle-statistics: Restructure
Signed-off-by: Thomas Klaehn <thomas.klaehn@u-blox.com>
2018-07-26 09:53:44 +02:00

19 lines
479 B
Python

import argparse
import sys
from gpx2html import Gpx2Html
def parse_args():
'''Shell argument parser.'''
parser = argparse.ArgumentParser()
parser.add_argument('infolder', help='Specify the in folder.')
parser.add_argument('outfolder', help='Specify the out folder.')
return parser.parse_args()
def main():
args = parse_args()
gpx2html = Gpx2Html(args.infolder, args.outfolder)
gpx2html.process()
if __name__ == '__main__':
sys.exit(main())