aboutsummaryrefslogtreecommitdiff
path: root/src/alf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alf.c')
-rw-r--r--src/alf.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/alf.c b/src/alf.c
index 3492720..d294378 100644
--- a/src/alf.c
+++ b/src/alf.c
@@ -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);
}