diff options
-rw-r--r-- | src/gistatic.c | 19 | ||||
-rw-r--r-- | src/gistatic.msg | 16 |
2 files changed, 30 insertions, 5 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", diff --git a/src/gistatic.msg b/src/gistatic.msg index 308e2e2..2647e1e 100644 --- a/src/gistatic.msg +++ b/src/gistatic.msg @@ -14,11 +14,21 @@ 8 Last commit -9 Usage: -h -o -i --z -x... +9 Usage: + gistatic -i -o DIRECTORY REPOSITORY... + gistatic -o DIRECTORY -u CLONE_URL REPOSITORY + gistatic [-hV] -10 help: ... +10 +Options: + -i build the index page of the repositories + -u CLONE_URL address to be shown alongside "git clone" + -o DIRECTORY output where to place the generated files + -h, --help show this help + -V, --version print the version number + +See "man gistatic" for more information. 11 commit feed |