-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathargs.py
58 lines (44 loc) · 1.11 KB
/
args.py
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
import argparse
parser = argparse.ArgumentParser(description="", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('repo_name', nargs='+', help='Repository name')
parser.add_argument(
'-c',
'--commits-per-day',
type=int,
default=10,
help='Number of commits per day.')
parser.add_argument(
'-r',
'--random',
action="store_true",
help='use random number in a range for commits per days'
)
parser.add_argument(
'-d',
'--delta',
type=int,
default=2,
help='delta value for range commits per days'
)
parser.add_argument(
'-s',
'--start-date',
type=str,
help="Start date for commit (format yyyy-mm-dd)"
)
parser.add_argument(
'-e',
'--end-date',
type=str,
help="end date for date range (format yyyy-mm-dd)"
)
parser.add_argument(
'--email',
type=str,
help="Email for commit"
)
parser.add_argument(
'--name',
type=str,
help="name for commit"
)