]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
(parse_options): New option --raw-hash, for
authorNiels Möller <nisse@lysator.liu.se>
Wed, 7 Sep 2005 08:32:18 +0000 (10:32 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Wed, 7 Sep 2005 08:32:18 +0000 (10:32 +0200)
compatibility with lsh-1.x. Equivalent to --hash.

Rev: src/nettle/tools/sexp-conv.c:1.19

tools/sexp-conv.c

index 99646031db87616c94b2b3e3d35b6d99dd4b5df5..584878335a3c09dcaced1a4f2cd73b368cf4fc26 100644 (file)
@@ -217,6 +217,7 @@ parse_options(struct conv_options *o,
          { "once", no_argument, NULL, OPT_ONCE },
          { "syntax", required_argument, NULL, 's' },
          { "hash", optional_argument, NULL, OPT_HASH },
+         { "raw-hash", optional_argument, NULL, OPT_HASH },
          { "width", required_argument, NULL, 'w' },
 #if 0
          /* Not yet implemented */
@@ -312,7 +313,9 @@ parse_options(struct conv_options *o,
                 "                            variants: advanced, hex, transport, canonical\n"
                 "       --once               Process only the first s-expression.\n"
                 "   -w, --width=WIDTH        Linewidth for base64 encoded data.\n"
-                "                            Zero means no limit.\n\n"
+                "                            Zero means no limit.\n"
+                "       --raw-hash           Alias for --hash, for compatibility\n"
+                "                            with lsh-1.x.\n\n"
                 "Report bugs to " BUG_ADDRESS ".\n");
          exit(EXIT_SUCCESS);