From d47d516863fba1544afa183481de2973d6186af7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Wed, 7 Sep 2005 10:32:18 +0200
Subject: [PATCH] (parse_options): New option --raw-hash, for compatibility
 with lsh-1.x. Equivalent to --hash.

Rev: src/nettle/tools/sexp-conv.c:1.19
---
 tools/sexp-conv.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tools/sexp-conv.c b/tools/sexp-conv.c
index 99646031..58487833 100644
--- a/tools/sexp-conv.c
+++ b/tools/sexp-conv.c
@@ -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);
 
-- 
GitLab