stagit-gopher-index: show usage when no repo is specified - stagit-gopher - A g… | |
git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2h… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit 9b48ff8e67a3b23b301293a63e8d757c8305f522 | |
parent 249271be279ada1e7323f413ab41db3a3b99fac9 | |
Author: Hiltjo Posthuma <[email protected]> | |
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: | |
M stagit-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); |