commit 62ef51d4cfd88fee30c7d67803a625ebdbfee79d
parent 9ee494dc46f02dfd71af2b2daaa1799a67382abd
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 16 Aug 2022 13:17:00 +0200
parent 9ee494dc46f02dfd71af2b2daaa1799a67382abd
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 16 Aug 2022 13:17:00 +0200
prefix usage with the common prefix "usage: "
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/stagit-index.c b/stagit-index.c @@ -196,7 +196,7 @@ main(int argc, char *argv[]) int i, ret = 0, tmp; if (argc < 2) { - fprintf(stderr, "%s [repodir...]\n", argv[0]); + fprintf(stderr, "usage: %s [repodir...]\n", argv[0]); return 1; }
diff --git a/stagit.c b/stagit.c @@ -1252,7 +1252,7 @@ writerefs(FILE *fp) void usage(char *argv0) { - fprintf(stderr, "%s [-c cachefile | -l commits | -n pagename | -h http_cloneurl | -s ssh_cloneurl ]" + fprintf(stderr, "usage: %s [-c cachefile | -l commits | -n pagename | -h http_cloneurl | -s ssh_cloneurl ]" " repodir\n", argv0); exit(1); }