aboutsummaryrefslogtreecommitdiffstats
path: root/java/sha3sum.java
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-09 23:42:44 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-09 23:42:44 +0100
commit4f6691c365f9967e1326ac6f2279a5e8152148d7 (patch)
treee6f9d3b18589a2f6876b371ead01b27b04fc609c /java/sha3sum.java
parent... (diff)
downloadsha3sum-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/sha3sum.java')
-rw-r--r--java/sha3sum.java6
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);