stagit-gopher-index: show usage when no repo is specified - stagit-gopher - A git gopher frontend. (mirror) (HTM) git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ (DIR) Log (DIR) Files (DIR) Refs (DIR) Tags (DIR) README (DIR) LICENSE --- (DIR) commit 9b48ff8e67a3b23b301293a63e8d757c8305f522 (DIR) parent 249271be279ada1e7323f413ab41db3a3b99fac9 (HTM) 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: M stagit-gopher-index.c | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) --- (DIR) 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);