summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/h5ls.c2
-rw-r--r--tools/h5repart.c25
2 files changed, 17 insertions, 10 deletions
diff --git a/tools/h5ls.c b/tools/h5ls.c
index f6e3de7..f7e9b76 100644
--- a/tools/h5ls.c
+++ b/tools/h5ls.c
@@ -45,7 +45,7 @@ usage: %s [OPTIONS] FILE [GROUP]\n\
OPTIONS\n\
-h, -?, --help Print a usage message and exit\n\
-v, --verbose Generate more verbose output\n\
- --version Print version number and exit\n\
+ -V, --version Print version number and exit\n\
FILE\n\
The file name may include a printf(3C) integer format such as\n\
\"%%05d\" to open a file family.\n\
diff --git a/tools/h5repart.c b/tools/h5repart.c
index 8faa9ea..75dae80 100644
--- a/tools/h5repart.c
+++ b/tools/h5repart.c
@@ -47,15 +47,18 @@
static void
usage (const char *progname)
{
- fprintf (stderr, "usage: %s [-[b|m] N[g|m|k]] SRC DST\n", progname);
- fprintf (stderr, " -b N The I/O block size, defaults to 1kB\n");
- fprintf (stderr, " -m N The destination member size or 1GB\n");
- fprintf (stderr, " SRC The name of the source file\n");
- fprintf (stderr, " DST The name of the destination files\n");
- fprintf (stderr, "Sizes may be suffixed with `g' for GB, `m' for MB or "
- "`k' for kB.\n");
- fprintf (stderr, "File family names include an integer printf "
- "format such as `%%d'\n");
+ fprintf(stderr, "usage: %s [-v] [-V] [-[b|m] N[g|m|k]] SRC DST\n",
+ progname);
+ fprintf(stderr, " -v Produce verbose output\n");
+ fprintf(stderr, " -V Print a version number and exit\n");
+ fprintf(stderr, " -b N The I/O block size, defaults to 1kB\n");
+ fprintf(stderr, " -m N The destination member size or 1GB\n");
+ fprintf(stderr, " SRC The name of the source file\n");
+ fprintf(stderr, " DST The name of the destination files\n");
+ fprintf(stderr, "Sizes may be suffixed with `g' for GB, `m' for MB or "
+ "`k' for kB.\n");
+ fprintf(stderr, "File family names include an integer printf "
+ "format such as `%%d'\n");
exit (1);
}
@@ -184,6 +187,10 @@ main (int argc, char *argv[])
if (!strcmp (argv[argno], "-v")) {
verbose = TRUE;
argno++;
+ } else if (!strcmp(argv[argno], "-V")) {
+ printf("This is %s version %u.%u release %u\n",
+ prog_name, H5_VERS_MAJOR, H5_VERS_MINOR, H5_VERS_RELEASE);
+ exit(0);
} else if ('b'==argv[argno][1]) {
blk_size = get_size (prog_name, &argno, argc, argv);
} else if ('m'==argv[argno][1]) {