diff options
author | EuAndreh <eu@euandre.org> | 2021-08-19 21:27:20 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-08-19 21:27:20 -0300 |
commit | c9fcbb6d05c2d66836d5d262cedf3797bb89f523 (patch) | |
tree | 68ae547825f0801ab9e8e11020bd4e855045aa3c /src/gistatic.c | |
parent | src/gistatic.c: Include usage message on -h flag (diff) | |
download | gistatic-c9fcbb6d05c2d66836d5d262cedf3797bb89f523.tar.gz gistatic-c9fcbb6d05c2d66836d5d262cedf3797bb89f523.tar.xz |
src/gistatic.c: Write actual usage and help texts
Diffstat (limited to 'src/gistatic.c')
-rw-r--r-- | src/gistatic.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/gistatic.c b/src/gistatic.c index 12a8917..ae23d7e 100644 --- a/src/gistatic.c +++ b/src/gistatic.c @@ -86,8 +86,23 @@ static const char *const MSGS[] = { [MSG_NAME]="Name", [MSG_DESCRIPTION]="Description", [MSG_LAST_COMMIT]="Last commit", - [MSG_USAGE]="Usage: -h -o -i\n-z -x...\n", - [MSG_HELP]="help: ...\n", + [MSG_USAGE]="" + "Usage:\n" + " " PROGNAME " -i -o DIRECTORY REPOSITORY...\n" + " " PROGNAME " -o DIRECTORY -u CLONE_URL REPOSITORY\n" + " " PROGNAME " [-hV]\n" + "", + [MSG_HELP]="" + "\n" + "Options:\n" + " -i build the index page of the repositories\n" + " -u CLONE_URL address to be shown alongside \"git clone\"\n" + " -o DIRECTORY output where to place the generated files\n" + " -h, --help show this help\n" + " -V, --version print the version number\n" + "\n" + "See \"man gistatic\" for more information.\n" + "", [MSG_COMMIT_FEED]="commit feed", [MSG_TAGS_FEED]="tags feed", [MSG_NAV_FILES]="files", |