aboutsummaryrefslogtreecommitdiffstats
path: root/python2/sha3sum.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-09 23:42:44 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-09 23:42:44 +0100
commit4f6691c365f9967e1326ac6f2279a5e8152148d7 (patch)
treee6f9d3b18589a2f6876b371ead01b27b04fc609c /python2/sha3sum.py
parent... (diff)
downloadsha3sum-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-xpython2/sha3sum.py6
1 files changed, 3 insertions, 3 deletions
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: