aboutsummaryrefslogtreecommitdiff
path: root/src/usage.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-11-14 06:27:22 -0500
committerB. Watson <urchlay@slackware.uk>2025-11-14 06:27:22 -0500
commit0f4d0a93434aa7586c9f66c6a48707b561ebf00a (patch)
treeb27276f9b2534a7c4026968e36f21fbdacad7eec /src/usage.c
parent3e2561662e065f9797f66f3c3663c8e271d1f272 (diff)
downloadunalf-0f4d0a93434aa7586c9f66c6a48707b561ebf00a.tar.gz
Generate usage message from comments in the .rst.
Diffstat (limited to 'src/usage.c')
-rw-r--r--src/usage.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/usage.c b/src/usage.c
new file mode 100644
index 0000000..d3d1e25
--- /dev/null
+++ b/src/usage.c
@@ -0,0 +1,16 @@
+const char *usage_msg[] = {
+ " -a: convert EOLs in text files.",
+ " -aa: convert EOLs in ALL files.",
+ " -d output-dir: set output directory (created if needed).",
+ " -e: extract files (redundant; this is the default action).",
+ " -k: keep trailing periods (dots) in filenames.",
+ " -l: list files in archive (filenames only).",
+ " -L: use lowercase filenames.",
+ " -o: overwrite files (do not create file~ backups).",
+ " -p: extract to stdout (enables -q).",
+ " -q: quiet: don't print filenames during extraction.",
+ " -t: test archive.",
+ " -v: verbose listing of archive contents.",
+ " -x wildcard: exclude <wildcard>. may be given multiple times.",
+ (const char*)0
+};