aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Timby <btimby@gmail.com>2023-12-07 13:54:43 -0500
committerGitHub <noreply@github.com>2023-12-07 19:54:43 +0100
commit437372a48effebaab7804cad40b84f2231f4a9ee (patch)
tree87ce3fb7cf08c6464ef65ba59bc3eda993399dce /src
parent452903126d15ab2228910eb36b78b152c07fb247 (diff)
Include operation names in the usage message (#8)
Diffstat (limited to 'src')
-rw-r--r--src/options.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/options.cpp b/src/options.cpp
index e2fcfdb..d606272 100644
--- a/src/options.cpp
+++ b/src/options.cpp
@@ -86,9 +86,14 @@ options_parse(int argc, char **argv, options_t *const opts)
void
options_usage(int exit_code)
{
- printf("Usage: %s [-s SECTOR_SIZE] [-b BUFFER_SIZE] [INFILE] REFFILE "
+ printf("Usage: %s backup [-s SECTOR_SIZE] [-b BUFFER_SIZE] INFILE REFFILE "
"OUTFILE\n",
PROGRAM_NAME_STR);
+ printf(" Or: %s restore [-s SECTOR_SIZE] [-b BUFFER_SIZE] REFFILE "
+ "OUTFILE\n",
+ PROGRAM_NAME_STR);
+ printf(" Or: %s help\n",
+ PROGRAM_NAME_STR);
exit(exit_code);
}