aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--c/sha3sum.c6
-rw-r--r--java-c-jni/sha3sum.java6
-rw-r--r--java/sha3sum.java6
-rwxr-xr-xpython2/sha3sum.py6
-rwxr-xr-xpython3/sha3sum.py6
-rw-r--r--vala/sha3sum.vala2
7 files changed, 17 insertions, 17 deletions
diff --git a/README.md b/README.md
index 6c94c1f..04ce483 100644
--- a/README.md
+++ b/README.md
@@ -65,7 +65,7 @@ PERFORMANCE COMPARISON:
-j SQUEEZES
--squeezes The number of hash squeezes to run. (default: 1)
- -h
+ -x
--hex Read the input in hexadecimal, rather than binary.
-b
diff --git a/c/sha3sum.c b/c/sha3sum.c
index 7a1d814..f8f82db 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");
@@ -274,7 +274,7 @@ int main(int argc, char** argv)
printf(" -j SQUEEZES\n");
printf(" --squeezes The number of hash squeezes to run. (default: %li)\n", _j);
printf(" \n");
- printf(" -h\n");
+ printf(" -x\n");
printf(" --hex Read the input in hexadecimal, rather than binary.\n");
printf(" \n");
printf(" -b\n");
@@ -388,7 +388,7 @@ int main(int argc, char** argv)
multi++;
arg++;
}
- else if (*arg == 'h')
+ else if (*arg == 'x')
{
hex = true;
arg++;
diff --git a/java-c-jni/sha3sum.java b/java-c-jni/sha3sum.java
index 2e42c26..0740044 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");
@@ -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);
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);
diff --git a/python2/sha3sum.py b/python2/sha3sum.py
index d02b601..1ced3cd 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
@@ -102,7 +102,7 @@ OPTIONS:
-j SQUEEZES
--squeezes The number of hash squeezes to run. (default: %d)
- -h
+ -x
--hex Read the input in hexadecimal, rather than binary.
-b
@@ -184,7 +184,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
elif arg[0] == 'b':
multi += 1
arg = arg[1:]
- elif arg[0] == 'h':
+ elif arg[0] == 'x':
hex = True
arg = arg[1:]
elif len(arg) == 1:
diff --git a/python3/sha3sum.py b/python3/sha3sum.py
index b4d6e56..0e9e376 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
@@ -89,7 +89,7 @@ OPTIONS:
-j SQUEEZES
--squeezes The number of hash squeezes to run. (default: %d)
- -h
+ -x
--hex Read the input in hexadecimal, rather than binary.
-b
@@ -171,7 +171,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
elif arg[0] == 'b':
multi += 1
arg = arg[1:]
- elif arg[0] == 'h':
+ elif arg[0] == 'x':
hex = True
arg = arg[1:]
elif len(arg) == 1:
diff --git a/vala/sha3sum.vala b/vala/sha3sum.vala
index 6e0fc9a..61a1717 100644
--- a/vala/sha3sum.vala
+++ b/vala/sha3sum.vala
@@ -654,7 +654,7 @@ static int main(string[] cmdargs)
{ string arg = args[a];
if (linger != null)
{
- if ((linger[0] == "-H") || (linger[0] == "--help"))
+ if ((linger[0] == "-h") || (linger[0] == "--help"))
{
stdout.printf("\n");
stdout.printf("SHA-3/Keccak checksum calculator\n");