From c9fcbb6d05c2d66836d5d262cedf3797bb89f523 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 19 Aug 2021 21:27:20 -0300 Subject: src/gistatic.c: Write actual usage and help texts --- src/gistatic.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'src/gistatic.c') 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", -- cgit v1.2.3