bicycle-statistics: Restructure

Signed-off-by: Thomas Klaehn <thomas.klaehn@u-blox.com>
This commit is contained in:
Thomas Klaehn
2018-07-26 09:53:44 +02:00
parent 538be61afd
commit 492c67bec3
8 changed files with 230 additions and 196 deletions

View File

View File

@@ -0,0 +1,18 @@
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())