diff options
author | Jonathan Kim <jkm@hdfgroup.org> | 2011-08-19 16:02:57 (GMT) |
---|---|---|
committer | Jonathan Kim <jkm@hdfgroup.org> | 2011-08-19 16:02:57 (GMT) |
commit | 00cdf98d005604d4ebf243c58ecacfc1c904f1fd (patch) | |
tree | 457b68eca73df1e00cc7a299d8038fedf9ab99b6 /tools/lib | |
parent | 85eabb54fe67701bec6165f67f57e5aae1f155a1 (diff) | |
download | hdf5-00cdf98d005604d4ebf243c58ecacfc1c904f1fd.zip hdf5-00cdf98d005604d4ebf243c58ecacfc1c904f1fd.tar.gz hdf5-00cdf98d005604d4ebf243c58ecacfc1c904f1fd.tar.bz2 |
[svn-r21264] Purpose:
Work for:
HDFFV-7515 - GMQS: h5unjam - incorrect help page and should display when
no file is given.
and
HDFFV-5941 - h5jam: specifying a user block file with a proper HDF5 magic
number will result in a corrupted HDF5 file.
Description:
- Merged from HDF5 trunk r21236,
- Revised command help pages of h5jam and h5unjam. The descriptions
were not up to date and some were missing. (HDFFV-7515)
- Fixed h5jam not to allow specifying an HDF5 formatted file as input
file for -u (user block file) option, because the original HDF5 file
will not be accessible if allows. (HDFFV-5941)
Tested:
jam (linux32-LE), koala (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), cmake (jam, win)
Diffstat (limited to 'tools/lib')
-rw-r--r-- | tools/lib/h5tools_utils.c | 18 | ||||
-rw-r--r-- | tools/lib/h5tools_utils.h | 1 |
2 files changed, 19 insertions, 0 deletions
diff --git a/tools/lib/h5tools_utils.c b/tools/lib/h5tools_utils.c index ee6d5d2..ab8536f 100644 --- a/tools/lib/h5tools_utils.c +++ b/tools/lib/h5tools_utils.c @@ -178,6 +178,24 @@ warn_msg(const char *fmt, ...) va_end(ap); } +/*------------------------------------------------------------------------- + * Function: help_ref_msg + * + * Purpose: Print a message to refer help page + * + * Return: Nothing + * + * Modifications: + * + *------------------------------------------------------------------------- + */ +void +help_ref_msg(FILE *output) +{ + HDfprintf(output, "Try '-h' or '--help' for more information or "); + HDfprintf(output, "see the <%s> entry in the 'HDF5 Reference Manual'.\n",h5tools_getprogname()); +} + /*------------------------------------------------------------------------- * Function: get_option diff --git a/tools/lib/h5tools_utils.h b/tools/lib/h5tools_utils.h index 88ab7ea..7cebd15 100644 --- a/tools/lib/h5tools_utils.h +++ b/tools/lib/h5tools_utils.h @@ -117,6 +117,7 @@ H5TOOLS_DLL void print_version(const char *progname); H5TOOLS_DLL void parallel_print(const char* format, ... ); H5TOOLS_DLL void error_msg(const char *fmt, ...); H5TOOLS_DLL void warn_msg(const char *fmt, ...); +H5TOOLS_DLL void help_ref_msg(FILE *output); H5TOOLS_DLL void free_table(table_t *table); #ifdef H5DUMP_DEBUG H5TOOLS_DLL void dump_tables(find_objs_t *info) |