calendar

BSD calendar reimplementation
git clone https://git.ce9e.org/calendar.git

commit
50f46060f75fe9af70a81d2cc63166bc2c98a529
parent
283a3b217e7971b19e51f164f22473c64128aa19
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2019-04-21 10:00
allow to file pass path in command line

Diffstat

M calendar.c 7 ++++++-

1 files changed, 6 insertions, 1 deletions


diff --git a/calendar.c b/calendar.c

@@ -395,7 +395,12 @@ int main(int argc, char *argv[]) {
  395   395 		}
  396   396 	}
  397   397 
  398    -1 	struct line *first = get_lines("~/.calendar/calendar");
   -1   398 	char* path = "~/.calendar/calendar";
   -1   399 	if (argv[optind] != NULL) {
   -1   400 		path = argv[optind];
   -1   401 	}
   -1   402 
   -1   403 	struct line *first = get_lines(path);
  399   404 
  400   405 	struct tm *TODAY = today();
  401   406