projects
/
ttt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
c025da0fca51ee8a9ff28a1efbc0eaf5eda01613
[ttt.git]
/
show.py
1
#!/usr/bin/python
2
3
# Author: Daniel Garcia <dani@danigm.net>
4
# License: GPLv3
5
6
import sys
7
import ttt
8
9
if __name__ == '__main__':
10
args = sys.argv[1:]
11
if '-g' in args:
12
# show grouped by project
13
ttt.show_today_grouped()
14
elif '-s' in args:
15
ttt.show_week()
16
elif '-gs' in args:
17
# show grouped by project
18
ttt.show_week_grouped()
19
elif '-a' in args:
20
ttt.show_all()
21
else:
22
ttt.show_today()