timelog

GTimeLog compatible command line tools
git clone https://git.ce9e.org/timelog.git

commit
50e124afbbe8867bd29605747826ab2a449d1cd6
parent
a03f441be93ea5e0cfeb4757f75cce7351393ea1
Author
Tobias Bengfort <tobias.bengfort@gmx.net>
Date
2014-01-28 00:33
use gtimelog file by default

Diffstat

M timelog_view.py 4 +++-

1 files changed, 3 insertions, 1 deletions


diff --git a/timelog_view.py b/timelog_view.py

@@ -17,6 +17,7 @@
   17    17 #	along with this program.  If not, see <http://www.gnu.org/licenses/>.
   18    18 
   19    19 import argparse
   -1    20 from os.path import expanduser
   20    21 from datetime import datetime, timedelta
   21    22 
   22    23 EMPTY_LINE = object()
@@ -252,7 +253,8 @@ class ExpectedHoursPer:
  252   253 if __name__ == '__main__':
  253   254 	parser = argparse.ArgumentParser(
  254   255 		description='extract interesting data from timelogs')
  255    -1 	parser.add_argument('file')
   -1   256 	parser.add_argument('--file',
   -1   257 		default=expanduser("~/.gtimelog/timelog.txt"))
  256   258 	parser.add_argument('-d', '--day', nargs='?', const=0, type=int,
  257   259 		help="show entries from today or DAY days ago")
  258   260 	parser.add_argument('-w', '--week', nargs='?', const=0, type=int,