add main.py

This commit is contained in:
2024-06-13 09:40:09 +02:00
parent 8e8be466de
commit 9962ada7a0

12
main.py Executable file
View File

@@ -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()