1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
#!/opt/homebrew/bin/python3
"""
ARGUMENTS FILE FOR WORKLOGGER
author: Wacky404
email: wacky404@dev.com
"""
import argparse
parser = argparse.ArgumentParser(
prog='WorkLogger',
description="Log time efficiently, accurately, and reliably "
"directly from the terminal you work in.",
)
parser.add_argument(
'-c',
'--configure',
action='store_true',
help='check/create directories that will be used in WorkLogger',
)
parser.add_argument(
'-l',
'--log',
action='store',
default='INFO', # NOTSET=0, DEBUG=10, INFO=20, WARNING=30, ERROR=40, CRITICAL=50
help='DEBUG: Detailed information for diagnosing problems | '
'INFO: Confirmation that things are working | '
'WARNING: Indication that something unexpected happened. Program still running | '
'ERROR: Not able to perform some function of the program | '
'CRITICAL: Serious error, program may be unable to continue running',
)
parser.add_argument(
'-v',
'--verbose',
action='store_false',
help='turn on/off the verboseness of the program when run',
)
parser.add_argument(
'job',
action='store',
help='Add a job for the work done, to be logged with your insertion',
)
parser.add_argument(
'-p',
'--project',
action='store',
help='',
)
parser.add_argument(
'-loc',
'--location',
action='store',
help='Add a location for the work done, to be logged with your insertion',
)
parser.add_argument(
'-t',
'--time',
action='store',
default=0
)
parser.add_argument(
'-s',
'--start',
action='store',
help='Add a start time for the work done, to be logged with your insertion',
)
parser.add_argument(
'-e',
'--end',
action='store',
help='Add a end time for the work done, to be logged with your insertion',
)
parser.add_argument(
'-m',
'--message',
action='store',
help='Add a message to accompany your worklog entry'
)
|