diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-11-27 16:24:22 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2025-11-27 16:24:22 -0500 |
| commit | b0892ba48c5eae7e8e0cca5f269d7b81e19b71ac (patch) | |
| tree | bf5b1047bc6fc1b9804a219a2159db77ab2418bd /src/alf.c | |
| parent | a5e791a9a6c36dab74e10c648403b0538f7e6fb5 (diff) | |
| download | alftools-b0892ba48c5eae7e8e0cca5f269d7b81e19b71ac.tar.gz | |
Generate alf usage from rst.
Diffstat (limited to 'src/alf.c')
| -rw-r--r-- | src/alf.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -335,11 +335,16 @@ void crunch_file(const char *filename) { } void usage(void) { + extern char *usage_msg[]; + char **line; + puts("alf (ALF compressor) v" VERSION " by B. Watson, WTFPL."); printf("Usage: %s [-a|-o] archive.alf file [file ...]\n", self); puts("Options:"); - puts(" -a: append to archive"); - puts(" -o: overwrite archive (don't make backup with ~)"); + + for(line = usage_msg; *line; line++) + puts(*line); + exit(0); } |
