prefix usage with the common prefix "usage: "
authorHiltjo Posthuma <hiltjo@codemadness.org>
Tue, 16 Aug 2022 11:17:00 +0000 (13:17 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Tue, 16 Aug 2022 11:17:00 +0000 (13:17 +0200)
stagit-index.c
stagit.c

index 735775b1ccbe8eef2434db2efa4ef90e8ae253f4..6402296bd1c0d614467e9ad8d04f52dd48c6cf3b 100644 (file)
@@ -179,7 +179,7 @@ main(int argc, char *argv[])
        int i, ret = 0;
 
        if (argc < 2) {
-               fprintf(stderr, "%s [repodir...]\n", argv[0]);
+               fprintf(stderr, "usage: %s [repodir...]\n", argv[0]);
                return 1;
        }
 
index 2a9c3fe7bcb19dade7bf44f7496e67d0ec154308..61c9a53b1c5a8e30024c45b7efabb36db6ae24ec 100644 (file)
--- a/stagit.c
+++ b/stagit.c
@@ -1184,7 +1184,7 @@ writerefs(FILE *fp)
 void
 usage(char *argv0)
 {
-       fprintf(stderr, "%s [-c cachefile | -l commits] "
+       fprintf(stderr, "usage: %s [-c cachefile | -l commits] "
                "[-u baseurl] repodir\n", argv0);
        exit(1);
 }