scribo

Email-based phlog generator
git clone git://git.z3bra.org/scribo.git
Log | Files | Refs

commit e96b2393492f00f4cb9143ac8eef814edd38e12c
parent 9d0eccfdc749b8243559903f6486188b4c8e4782
Author: Willy Goiffon <dev@z3bra.org>
Date:   Tue,  8 Sep 2020 15:40:40 +0200

Add flags to change author and date format

Diffstat:
Mscribo.c | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/scribo.c b/scribo.c @@ -44,7 +44,7 @@ int writeindex(FILE *, char *); void usage(char *pgm) { - fprintf(stderr, "usage: %s [-b basedir] [-io file]", pgm); + fprintf(stderr, "usage: %s [-a author] [-b basedir] [-d fmt] [-io file]", pgm); } char * @@ -248,9 +248,15 @@ main(int argc, char *argv[]) outfile = NULL; ARGBEGIN { + case 'a': + author = EARGF(usage(argv0)); + break; /* NOTREACHED */ case 'b': basedir = EARGF(usage(argv0)); break; /* NOTREACHED */ + case 'd': + datefmt = EARGF(usage(argv0)); + break; /* NOTREACHED */ case 'i': infile = EARGF(usage(argv0)); break; /* NOTREACHED */