[svn-r22077] Add example of multiple files for h5dump help text.

Tested: local linux
This commit is contained in:
Allen Byrne 2012-03-15 16:21:46 -05:00
parent b337ae979d
commit f261344af9
9 changed files with 45 additions and 9 deletions

View File

@ -231,7 +231,7 @@ static void
usage(const char *prog)
{
HDfflush(rawoutstream);
HDfprintf(rawoutstream, "usage: %s [OPTIONS] file\n", prog);
HDfprintf(rawoutstream, "usage: %s [OPTIONS] files\n", prog);
HDfprintf(rawoutstream, " OPTIONS\n");
HDfprintf(rawoutstream, " -h, --help Print a usage message and exit\n");
HDfprintf(rawoutstream, " -n, --contents Print a list of the file contents and exit\n");
@ -329,6 +329,10 @@ usage(const char *prog)
HDfprintf(rawoutstream, "\n");
HDfprintf(rawoutstream, " h5dump -d /dset -M 0,1,4,3 quux.h5\n");
HDfprintf(rawoutstream, "\n");
HDfprintf(rawoutstream, " 5) Dataset foo in files multi1.h5 multi2.h5 multi3.h5\n");
HDfprintf(rawoutstream, "\n");
HDfprintf(rawoutstream, " h5dump -d /foo multi1.h5 multi2.h5 multi3.h5\n");
HDfprintf(rawoutstream, "\n");
}

View File

@ -1,4 +1,4 @@
usage: h5dump [OPTIONS] file
usage: h5dump [OPTIONS] files
OPTIONS
-h, --help Print a usage message and exit
-n, --contents Print a list of the file contents and exit
@ -94,3 +94,7 @@ usage: h5dump [OPTIONS] file
h5dump -d /dset -M 0,1,4,3 quux.h5
5) Dataset foo in files multi1.h5 multi2.h5 multi3.h5
h5dump -d /foo multi1.h5 multi2.h5 multi3.h5

View File

@ -1,4 +1,4 @@
usage: h5dump [OPTIONS] file
usage: h5dump [OPTIONS] files
OPTIONS
-h, --help Print a usage message and exit
-n, --contents Print a list of the file contents and exit
@ -94,4 +94,8 @@ usage: h5dump [OPTIONS] file
h5dump -d /dset -M 0,1,4,3 quux.h5
5) Dataset foo in files multi1.h5 multi2.h5 multi3.h5
h5dump -d /foo multi1.h5 multi2.h5 multi3.h5
h5dump error: missing file name

View File

@ -1,4 +1,4 @@
usage: h5dump [OPTIONS] file
usage: h5dump [OPTIONS] files
OPTIONS
-h, --help Print a usage message and exit
-n, --contents Print a list of the file contents and exit
@ -94,4 +94,8 @@ usage: h5dump [OPTIONS] file
h5dump -d /dset -M 0,1,4,3 quux.h5
5) Dataset foo in files multi1.h5 multi2.h5 multi3.h5
h5dump -d /foo multi1.h5 multi2.h5 multi3.h5
h5dump error: Bad mask list(0,2,2,1,0,2,2,)

View File

@ -1,4 +1,4 @@
usage: h5dump [OPTIONS] file
usage: h5dump [OPTIONS] files
OPTIONS
-h, --help Print a usage message and exit
-n, --contents Print a list of the file contents and exit
@ -94,4 +94,8 @@ usage: h5dump [OPTIONS] file
h5dump -d /dset -M 0,1,4,3 quux.h5
5) Dataset foo in files multi1.h5 multi2.h5 multi3.h5
h5dump -d /foo multi1.h5 multi2.h5 multi3.h5
h5dump error: Packed Bit offset+length value(65) too large. Max is 64

View File

@ -1,4 +1,4 @@
usage: h5dump [OPTIONS] file
usage: h5dump [OPTIONS] files
OPTIONS
-h, --help Print a usage message and exit
-n, --contents Print a list of the file contents and exit
@ -94,4 +94,8 @@ usage: h5dump [OPTIONS] file
h5dump -d /dset -M 0,1,4,3 quux.h5
5) Dataset foo in files multi1.h5 multi2.h5 multi3.h5
h5dump -d /foo multi1.h5 multi2.h5 multi3.h5
h5dump error: Packed Bit length value(0) must be positive.

View File

@ -1,4 +1,4 @@
usage: h5dump [OPTIONS] file
usage: h5dump [OPTIONS] files
OPTIONS
-h, --help Print a usage message and exit
-n, --contents Print a list of the file contents and exit
@ -94,4 +94,8 @@ usage: h5dump [OPTIONS] file
h5dump -d /dset -M 0,1,4,3 quux.h5
5) Dataset foo in files multi1.h5 multi2.h5 multi3.h5
h5dump -d /foo multi1.h5 multi2.h5 multi3.h5
h5dump error: Too many masks requested (max. 8). Mask list(0,1,0,1,1,1,2,1,3,1,4,1,5,1,6,1,7,1)

View File

@ -1,4 +1,4 @@
usage: h5dump [OPTIONS] file
usage: h5dump [OPTIONS] files
OPTIONS
-h, --help Print a usage message and exit
-n, --contents Print a list of the file contents and exit
@ -94,4 +94,8 @@ usage: h5dump [OPTIONS] file
h5dump -d /dset -M 0,1,4,3 quux.h5
5) Dataset foo in files multi1.h5 multi2.h5 multi3.h5
h5dump -d /foo multi1.h5 multi2.h5 multi3.h5
h5dump error: Packed Bit offset value(64) must be between 0 and 63

View File

@ -1,4 +1,4 @@
usage: h5dump [OPTIONS] file
usage: h5dump [OPTIONS] files
OPTIONS
-h, --help Print a usage message and exit
-n, --contents Print a list of the file contents and exit
@ -94,4 +94,8 @@ usage: h5dump [OPTIONS] file
h5dump -d /dset -M 0,1,4,3 quux.h5
5) Dataset foo in files multi1.h5 multi2.h5 multi3.h5
h5dump -d /foo multi1.h5 multi2.h5 multi3.h5
h5dump error: Bad mask list(-1,1)