From 084956ba79ce2d510949ae38248beb0d34af31e8 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 9 Feb 2014 23:37:05 +0100 Subject: -h was used for both --help and --hex, -H is now --help and -h is now only --hex (iisue #12) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- c/sha3sum.c | 2 +- java-c-jni/sha3sum.java | 2 +- java/sha3sum.java | 2 +- python2/sha3sum.py | 2 +- python3/sha3sum.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/c/sha3sum.c b/c/sha3sum.c index 6d46b81..7a1d814 100644 --- a/c/sha3sum.c +++ b/c/sha3sum.c @@ -243,7 +243,7 @@ int main(int argc, char** argv) char* arg = a == an ? null : *(args + a); if (*linger) { - if (eq(*linger, "-h") || eq(*linger, "--help")) + if (eq(*linger, "-H") || eq(*linger, "--help")) { printf("\n"); printf("SHA-3/Keccak checksum calculator\n"); diff --git a/java-c-jni/sha3sum.java b/java-c-jni/sha3sum.java index 078dd61..2e42c26 100644 --- a/java-c-jni/sha3sum.java +++ b/java-c-jni/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"); diff --git a/java/sha3sum.java b/java/sha3sum.java index 078dd61..2e42c26 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"); diff --git a/python2/sha3sum.py b/python2/sha3sum.py index 9bb04ed..d02b601 100755 --- a/python2/sha3sum.py +++ b/python2/sha3sum.py @@ -72,7 +72,7 @@ if __name__ == '__main__': for arg in args + [None]: if linger is not None: - if linger[0] in ('-h', '--help'): + if linger[0] in ('-H', '--help'): sys.stderr.buffer.write((''' SHA-3/Keccak checksum calculator diff --git a/python3/sha3sum.py b/python3/sha3sum.py index 4143652..b4d6e56 100755 --- a/python3/sha3sum.py +++ b/python3/sha3sum.py @@ -59,7 +59,7 @@ if __name__ == '__main__': for arg in args + [None]: if linger is not None: - if linger[0] in ('-h', '--help'): + if linger[0] in ('-H', '--help'): sys.stderr.buffer.write((''' SHA-3/Keccak checksum calculator -- cgit v1.2.3-70-g09d2