diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-02-09 23:42:44 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-02-09 23:42:44 +0100 |
commit | 4f6691c365f9967e1326ac6f2279a5e8152148d7 (patch) | |
tree | e6f9d3b18589a2f6876b371ead01b27b04fc609c /python3 | |
parent | ... (diff) | |
download | sha3sum-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 '')
-rwxr-xr-x | python3/sha3sum.py | 6 |
1 files changed, 3 insertions, 3 deletions
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: |