correct descriptive help example
[cfe_generate_password.git] / cfe_generate_password.c
index 2aa2d9d..85a0117 100644 (file)
@@ -57,9 +57,9 @@ static const char *help = \
 
 "The tool can accept a timestamp as 8 hexadecimal characters (useful for testing the algorithm):\n\n"
 
-" ./cfe_gen_pass -t 0FF020 -s ec:43:f6:46:c0:80 -p\n\n"
+" ./cfe_gen_pass -t 56FA8C2B -s ec:43:f6:46:c0:80 -p\n\n"
 
-"MAC address: ec:43:f6:46:c0:80 Timestamp: 0FF020 Seed: 0FF02046c080 Password: 110f65a3\n\n"
+" MAC address: ec:43:f6:46:c0:80 Timestamp: 56FA8C2B (2016-03-29 14:07:39) Seed: FA8C2B46c080 Password: 1111bda5\n\n"
 ;
 
 #include <stdio.h>
@@ -80,7 +80,6 @@ pr_usage(int verbose)
 {
   fprintf(stderr,
     "Usage:\n"
-    "  -v                   show version\n"
     "  -s 00:01:02:03:04:05 create seed from MAC address\n"
     "  -t [00000000]        seconds since 1970-01-01 (defaults to NOW) \n"
     "  -p [SEED]            generate password (with optional seed)\n"
@@ -206,8 +205,6 @@ main(int argc, char **argv, char **env)
         case 'h':
           pr_usage(1);
           exit(0);
-        case 'v':
-          fprintf(stderr, "Version: %0.2f\n", VERSION);
       }
     } else if (opt_seed == 1) {
       MAC_ADDR = argv[arg];