From 4f6691c365f9967e1326ac6f2279a5e8152148d7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 9 Feb 2014 23:42:44 +0100 Subject: use -h for --help and -x for --hex (issue #12) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- java/sha3sum.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'java') diff --git a/java/sha3sum.java b/java/sha3sum.java index 2e42c26..0740044 100644 --- a/java/sha3sum.java +++ b/java/sha3sum.java @@ -84,7 +84,7 @@ public class sha3sum if (linger != null) { linger[0] = linger[0].intern(); - if ((linger[0] == "-H") || (linger[0] == "--help")) + if ((linger[0] == "-h") || (linger[0] == "--help")) { System.out.println(""); System.out.println("SHA-3/Keccak checksum calculator"); @@ -115,7 +115,7 @@ public class sha3sum System.out.println(" -j SQUEEZES"); System.out.println(" --squeezes The number of hash squeezes to run. (default: " + _j + ")"); System.out.println(" "); - System.out.println(" -h"); + System.out.println(" -x"); System.out.println(" --hex Read the input in hexadecimal, rather than binary."); System.out.println(" "); System.out.println(" -b"); @@ -208,7 +208,7 @@ public class sha3sum multi++; arg = arg.substring(1); } - else if (arg.charAt(0) == 'h') + else if (arg.charAt(0) == 'x') { hex = true; arg = arg.substring(1); -- cgit v1.2.3-70-g09d2