diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-02-09 23:42:44 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-02-09 23:42:44 +0100 |
commit | 4f6691c365f9967e1326ac6f2279a5e8152148d7 (patch) | |
tree | e6f9d3b18589a2f6876b371ead01b27b04fc609c /java | |
parent | ... (diff) | |
download | sha3sum-4f6691c365f9967e1326ac6f2279a5e8152148d7.tar.gz sha3sum-4f6691c365f9967e1326ac6f2279a5e8152148d7.tar.bz2 sha3sum-4f6691c365f9967e1326ac6f2279a5e8152148d7.tar.xz |
use -h for --help and -x for --hex (issue #12)
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'java')
-rw-r--r-- | java/sha3sum.java | 6 |
1 files changed, 3 insertions, 3 deletions
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); |