stagit-gopher

[fork] gopher git frontend
Log | Files | Refs | README | LICENSE

commit 9b48ff8e67a3b23b301293a63e8d757c8305f522
parent 249271be279ada1e7323f413ab41db3a3b99fac9
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri,  6 Apr 2018 19:29:33 +0200

stagit-gopher-index: show usage when no repo is specified

similar to stagit-index (HTML version).

Diffstat:
Mstagit-gopher-index.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/stagit-gopher-index.c b/stagit-gopher-index.c @@ -273,6 +273,10 @@ main(int argc, char *argv[]) writelog(stdout); } + if (!repodir) { + fprintf(stderr, "%s [-b baseprefix] [repodir...]\n", argv[0]); + return 1; + } /* cleanup */ git_repository_free(repo);