Include version number in usage message.
authorMichael Vrable <mvrable@cs.ucsd.edu>
Fri, 10 Aug 2007 18:18:49 +0000 (11:18 -0700)
committerMichael Vrable <mvrable@turin.ucsd.edu>
Fri, 10 Aug 2007 18:18:49 +0000 (11:18 -0700)
scandir.cc

index d91701f..2d5a3a8 100644 (file)
@@ -559,6 +559,7 @@ void usage(const char *program)
 {
     fprintf(
         stderr,
+        "LBS %s\n\n"
         "Usage: %s [OPTION]... --dest=DEST PATHS...\n"
         "Produce backup snapshot of files in SOURCE and store to DEST.\n"
         "\n"
@@ -572,7 +573,7 @@ void usage(const char *program)
         "                       string to append to segment files\n"
         "                           (defaults to \".bz2\")\n"
         "  --scheme=NAME        optional name for this snapshot\n",
-        program
+        lbs_version, program
     );
 }