From 0f4d0a93434aa7586c9f66c6a48707b561ebf00a Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 14 Nov 2025 06:27:22 -0500 Subject: Generate usage message from comments in the .rst. --- src/usage.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/usage.c (limited to 'src/usage.c') 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 . may be given multiple times.", + (const char*)0 +}; -- cgit v1.2.3