aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-09 23:37:05 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-09 23:37:05 +0100
commit084956ba79ce2d510949ae38248beb0d34af31e8 (patch)
treed32dc4c990c05409a14e5dd4d8848863cb6be951
parentMerge pull request #11 from kseistrup/patch-2 (diff)
downloadsha3sum-084956ba79ce2d510949ae38248beb0d34af31e8.tar.gz
sha3sum-084956ba79ce2d510949ae38248beb0d34af31e8.tar.bz2
sha3sum-084956ba79ce2d510949ae38248beb0d34af31e8.tar.xz
-h was used for both --help and --hex, -H is now --help and -h is now only --hex (iisue #12)
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--c/sha3sum.c2
-rw-r--r--java-c-jni/sha3sum.java2
-rw-r--r--java/sha3sum.java2
-rwxr-xr-xpython2/sha3sum.py2
-rwxr-xr-xpython3/sha3sum.py2
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