From 9962ada7a05d14266b908a1f356fa062561ffd5c Mon Sep 17 00:00:00 2001 From: Elias Kohout Date: Thu, 13 Jun 2024 09:40:09 +0200 Subject: [PATCH] add main.py --- main.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 main.py diff --git a/main.py b/main.py new file mode 100755 index 0000000..39c2479 --- /dev/null +++ b/main.py @@ -0,0 +1,12 @@ +#!/usr/bin/python3 + +import argparse + +parser = argparse.ArgumentParser(description='Time tracker') +parser.add_argument('command', type=str, help='Manage time slots.', choices=['start', 'stop', 'add', 'ps', 'ls']) +parser.add_argument('-b', '--begin', type=str, help="The start time of a time slot.") +parser.add_argument('-e', '--end', type=str, help="The end time of a time slot.") + +args = parser.parse_args() + +