mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-18 17:40:55 +08:00
[svn-r17075] Implemented nowrap option (Bug 811) equivalent to h5ls tool. Also updated usage output.
Tested: linux
This commit is contained in:
parent
e05933f245
commit
2a876ea086
@ -649,7 +649,9 @@ usage(const char *prog)
|
||||
fprintf(stdout, " -o F, --output=F Output raw data into file F\n");
|
||||
fprintf(stdout, " -b B, --binary=B Binary file output, of form B\n");
|
||||
fprintf(stdout, " -t P, --datatype=P Print the specified named datatype\n");
|
||||
fprintf(stdout, " -w N, --width=N Set the number of columns of output\n");
|
||||
fprintf(stdout, " -w N, --width=N Set the number of columns of output. A value of 0 (zero)\n");
|
||||
fprintf(stdout, " sets the number of columns to the maximum (65535).\n");
|
||||
fprintf(stdout, " Default width is 80 columns.\n");
|
||||
fprintf(stdout, " -m T, --format=T Set the floating point output format\n");
|
||||
fprintf(stdout, " -q Q, --sort_by=Q Sort groups and attributes by index Q\n");
|
||||
fprintf(stdout, " -z Z, --sort_order=Z Sort groups and attributes by order Z\n");
|
||||
@ -2377,7 +2379,12 @@ dump_data(hid_t obj_id, int obj_data, struct subset_t *sset, int display_index)
|
||||
outputformat->fmt_float = fp_format;
|
||||
}
|
||||
|
||||
outputformat->line_ncols = nCols;
|
||||
if (nCols==0) {
|
||||
outputformat->line_ncols = 65535;
|
||||
outputformat->line_per_line = 1;
|
||||
}
|
||||
else
|
||||
outputformat->line_ncols = nCols;
|
||||
outputformat->do_escape=display_escape;
|
||||
/* print the matrix indices */
|
||||
outputformat->pindex=display_index;
|
||||
@ -5363,7 +5370,12 @@ xml_dump_data(hid_t obj_id, int obj_data, struct subset_t UNUSED * sset, int UNU
|
||||
int depth;
|
||||
int stdindent = COL; /* should be 3 */
|
||||
|
||||
outputformat->line_ncols = nCols;
|
||||
if (nCols==0) {
|
||||
outputformat->line_ncols = 65535;
|
||||
outputformat->line_per_line = 1;
|
||||
}
|
||||
else
|
||||
outputformat->line_ncols = nCols;
|
||||
indent += COL;
|
||||
|
||||
/*
|
||||
|
@ -22,7 +22,9 @@ usage: h5dump [OPTIONS] file
|
||||
-o F, --output=F Output raw data into file F
|
||||
-b B, --binary=B Binary file output, of form B
|
||||
-t P, --datatype=P Print the specified named datatype
|
||||
-w N, --width=N Set the number of columns of output
|
||||
-w N, --width=N Set the number of columns of output. A value of 0 (zero)
|
||||
sets the number of columns to the maximum (65535).
|
||||
Default width is 80 columns.
|
||||
-m T, --format=T Set the floating point output format
|
||||
-q Q, --sort_by=Q Sort groups and attributes by index Q
|
||||
-z Z, --sort_order=Z Sort groups and attributes by order Z
|
||||
|
Loading…
x
Reference in New Issue
Block a user