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 /c/sha3sum.c | |
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 '')
-rw-r--r-- | c/sha3sum.c | 6 |
1 files changed, 3 insertions, 3 deletions
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++; |