aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mkhash.c
diff options
context:
space:
mode:
authorPaul Spooren <mail@aparcar.org>2020-07-16 17:43:30 -1000
committerDaniel Golle <daniel@makrotopia.org>2020-11-09 10:52:19 +0000
commit91a0dc5161e25085a01edd66b1d8da19593dcc4a (patch)
treee4061208333daf3af0231e625f663ca87763d2c8 /scripts/mkhash.c
parente26744551039ef8d33786948a830ba5aa0a988b8 (diff)
downloadupstream-91a0dc5161e25085a01edd66b1d8da19593dcc4a.tar.gz
upstream-91a0dc5161e25085a01edd66b1d8da19593dcc4a.tar.bz2
upstream-91a0dc5161e25085a01edd66b1d8da19593dcc4a.zip
scripts: mkhash show -n option in usage
The -n option prints the filename of hashed files next to the calculated checksum. Reflect that in the usage message. user@dawn:~/src/openwrt/openwrt$ ./a.out md5 -n .config eb06db36e7b6751cb18801945e46bf5d .config Signed-off-by: Paul Spooren <mail@aparcar.org>
Diffstat (limited to 'scripts/mkhash.c')
-rw-r--r--scripts/mkhash.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/mkhash.c b/scripts/mkhash.c
index 0f5815f242..e26ca3a350 100644
--- a/scripts/mkhash.c
+++ b/scripts/mkhash.c
@@ -736,7 +736,10 @@ static int usage(const char *progname)
{
int i;
- fprintf(stderr, "Usage: %s <hash type> [<file>...]\n"
+ fprintf(stderr, "Usage: %s <hash type> [options] [<file>...]\n"
+ "Options:\n"
+ " -n Print filename(s)\n"
+ "\n"
"Supported hash types:", progname);
for (i = 0; i < ARRAY_SIZE(types); i++)