@@ -26,123 +26,145 @@ def parse_arguments(argv: Optional[List[str]] = None) -> Namespace:
26
26
"""
27
27
28
28
parser = ArgumentParser (
29
- description = ' Git Py Stats - A Python Implementation of Git Quick Stats.'
29
+ description = " Git Py Stats - A Python Implementation of Git Quick Stats."
30
30
)
31
31
32
32
# Generate Options
33
33
parser .add_argument (
34
- '-T' , '--detailed-git-stats' ,
35
- action = 'store_true' ,
36
- help = 'Give a detailed list of git stats'
34
+ "-T" ,
35
+ "--detailed-git-stats" ,
36
+ action = "store_true" ,
37
+ help = "Give a detailed list of git stats" ,
37
38
)
38
39
parser .add_argument (
39
- '-R' , '--git-stats-by-branch' ,
40
- metavar = 'BRANCH' ,
41
- help = 'See detailed list of git stats by branch'
40
+ "-R" ,
41
+ "--git-stats-by-branch" ,
42
+ metavar = "BRANCH" ,
43
+ help = "See detailed list of git stats by branch" ,
42
44
)
43
45
parser .add_argument (
44
- '-c' , '--changelogs' ,
45
- action = 'store_true' ,
46
- help = 'See changelogs'
46
+ "-c" ,
47
+ "--changelogs" ,
48
+ action = "store_true" ,
49
+ help = "See changelogs" ,
47
50
)
48
51
parser .add_argument (
49
- '-L' , '--changelogs-by-author' ,
52
+ "-L" ,
53
+ "--changelogs-by-author" ,
50
54
metavar = '"AUTHOR NAME"' ,
51
- help = ' See changelogs by author'
55
+ help = " See changelogs by author" ,
52
56
)
53
57
parser .add_argument (
54
- '-S' , '--my-daily-stats' ,
55
- action = 'store_true' ,
56
- help = 'See your current daily stats'
58
+ "-S" ,
59
+ "--my-daily-stats" ,
60
+ action = "store_true" ,
61
+ help = "See your current daily stats" ,
57
62
)
58
63
parser .add_argument (
59
- '-V' , '--csv-output-by-branch' ,
60
- action = 'store_true' ,
61
- help = 'Output daily stats by branch in CSV format'
64
+ "-V" ,
65
+ "--csv-output-by-branch" ,
66
+ action = "store_true" ,
67
+ help = "Output daily stats by branch in CSV format" ,
62
68
)
63
69
parser .add_argument (
64
- '-j' , '--json-output' ,
65
- action = 'store_true' ,
66
- help = 'Save git log as a JSON formatted file to a specified area'
70
+ "-j" ,
71
+ "--json-output" ,
72
+ action = "store_true" ,
73
+ help = "Save git log as a JSON formatted file to a specified area" ,
67
74
)
68
75
69
76
# List Options
70
77
parser .add_argument (
71
- '-b' , '--branch-tree' ,
72
- action = 'store_true' ,
73
- help = 'Show an ASCII graph of the git repo branch history'
78
+ "-b" ,
79
+ "--branch-tree" ,
80
+ action = "store_true" ,
81
+ help = "Show an ASCII graph of the git repo branch history" ,
74
82
)
75
83
parser .add_argument (
76
- '-D' , '--branches-by-date' ,
77
- action = 'store_true' ,
78
- help = 'Show branches by date'
84
+ "-D" ,
85
+ "--branches-by-date" ,
86
+ action = "store_true" ,
87
+ help = "Show branches by date" ,
79
88
)
80
89
parser .add_argument (
81
- '-C' , '--contributors' ,
82
- action = 'store_true' ,
83
- help = 'See a list of everyone who contributed to the repo'
90
+ "-C" ,
91
+ "--contributors" ,
92
+ action = "store_true" ,
93
+ help = "See a list of everyone who contributed to the repo" ,
84
94
)
85
95
parser .add_argument (
86
- '-n' , '--new-contributors' ,
87
- metavar = 'DATE' ,
88
- help = 'List everyone who made their first contribution since a specified date'
96
+ "-n" ,
97
+ "--new-contributors" ,
98
+ metavar = "DATE" ,
99
+ help = "List everyone who made their first contribution since a specified date" ,
89
100
)
90
101
parser .add_argument (
91
- '-a' , '--commits-per-author' ,
92
- action = 'store_true' ,
93
- help = 'Displays a list of commits per author'
102
+ "-a" ,
103
+ "--commits-per-author" ,
104
+ action = "store_true" ,
105
+ help = "Displays a list of commits per author" ,
94
106
)
95
107
parser .add_argument (
96
- '-d' , '--commits-per-day' ,
97
- action = 'store_true' ,
98
- help = 'Displays a list of commits per day'
108
+ "-d" ,
109
+ "--commits-per-day" ,
110
+ action = "store_true" ,
111
+ help = "Displays a list of commits per day" ,
99
112
)
100
113
parser .add_argument (
101
- '-Y' , '--commits-by-year' ,
102
- action = 'store_true' ,
103
- help = 'Displays a list of commits per year'
114
+ "-Y" ,
115
+ "--commits-by-year" ,
116
+ action = "store_true" ,
117
+ help = "Displays a list of commits per year" ,
104
118
)
105
119
parser .add_argument (
106
- '-m' , '--commits-by-month' ,
107
- action = 'store_true' ,
108
- help = 'Displays a list of commits per month'
120
+ "-m" ,
121
+ "--commits-by-month" ,
122
+ action = "store_true" ,
123
+ help = "Displays a list of commits per month" ,
109
124
)
110
125
parser .add_argument (
111
- '-w' , '--commits-by-weekday' ,
112
- action = 'store_true' ,
113
- help = 'Displays a list of commits per weekday'
126
+ "-w" ,
127
+ "--commits-by-weekday" ,
128
+ action = "store_true" ,
129
+ help = "Displays a list of commits per weekday" ,
114
130
)
115
131
parser .add_argument (
116
- '-W' , '--commits-by-author-by-weekday' ,
132
+ "-W" ,
133
+ "--commits-by-author-by-weekday" ,
117
134
metavar = '"AUTHOR NAME"' ,
118
- help = ' Displays a list of commits per weekday by author'
135
+ help = " Displays a list of commits per weekday by author" ,
119
136
)
120
137
parser .add_argument (
121
- '-o' , '--commits-by-hour' ,
122
- action = 'store_true' ,
123
- help = 'Displays a list of commits per hour'
138
+ "-o" ,
139
+ "--commits-by-hour" ,
140
+ action = "store_true" ,
141
+ help = "Displays a list of commits per hour" ,
124
142
)
125
143
parser .add_argument (
126
- '-A' , '--commits-by-author-by-hour' ,
144
+ "-A" ,
145
+ "--commits-by-author-by-hour" ,
127
146
metavar = '"AUTHOR NAME"' ,
128
- help = ' Displays a list of commits per hour by author'
147
+ help = " Displays a list of commits per hour by author" ,
129
148
)
130
149
parser .add_argument (
131
- '-z' , '--commits-by-timezone' ,
132
- action = 'store_true' ,
133
- help = 'Displays a list of commits per timezone'
150
+ "-z" ,
151
+ "--commits-by-timezone" ,
152
+ action = "store_true" ,
153
+ help = "Displays a list of commits per timezone" ,
134
154
)
135
155
parser .add_argument (
136
- '-Z' , '--commits-by-author-by-timezone' ,
156
+ "-Z" ,
157
+ "--commits-by-author-by-timezone" ,
137
158
metavar = '"AUTHOR NAME"' ,
138
- help = ' Displays a list of commits per timezone by author'
159
+ help = " Displays a list of commits per timezone by author" ,
139
160
)
140
161
141
162
# Suggest Options
142
163
parser .add_argument (
143
- '-r' , '--suggest-reviewers' ,
144
- action = 'store_true' ,
145
- help = 'Show the best people to contact to review code'
164
+ "-r" ,
165
+ "--suggest-reviewers" ,
166
+ action = "store_true" ,
167
+ help = "Show the best people to contact to review code" ,
146
168
)
147
169
148
170
# Help option inherited from argparse by default, no need to impl them.
0 commit comments