From fbc0f6913e444fbbeb8f71360dbd73028595b675 Mon Sep 17 00:00:00 2001 From: Amir Goldstein Date: Thu, 29 Mar 2018 15:06:47 +0300 Subject: [PATCH] open_by_handle: make -h (help) a valid option All this does is suppress the "illegal value" message. Signed-off-by: Amir Goldstein Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- src/open_by_handle.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/open_by_handle.c b/src/open_by_handle.c index 78f7ef75..7dfb395b 100644 --- a/src/open_by_handle.c +++ b/src/open_by_handle.c @@ -27,7 +27,7 @@ /* -usage: open_by_handle [-cludmrwapk] [<-i|-o> ] [num_files] +usage: open_by_handle [-cludmrwapkh] [<-i|-o> ] [num_files] Examples: @@ -109,7 +109,7 @@ struct handle { void usage(void) { - fprintf(stderr, "usage: open_by_handle [-cludmrwapk] [<-i|-o> ] [num_files]\n"); + fprintf(stderr, "usage: open_by_handle [-cludmrwapkh] [<-i|-o> ] [num_files]\n"); fprintf(stderr, "\n"); fprintf(stderr, "open_by_handle -c [N] - create N test files under test_dir, try to get file handles and exit\n"); fprintf(stderr, "open_by_handle [N] - get file handles of test files, drop caches and try to open by handle\n"); @@ -149,7 +149,7 @@ int main(int argc, char **argv) if (argc < 2) usage(); - while ((c = getopt(argc, argv, "cludmrwapki:o:")) != -1) { + while ((c = getopt(argc, argv, "cludmrwapkhi:o:")) != -1) { switch (c) { case 'c': create = 1; -- 2.30.2