From 4f6691c365f9967e1326ac6f2279a5e8152148d7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 9 Feb 2014 23:42:44 +0100 Subject: use -h for --help and -x for --hex (issue #12) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- python3/sha3sum.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python3') 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 . 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: -- cgit v1.2.3-70-g09d2