[svn-r14216] add a -V version information for h5diff

tested: windows, linux
This commit is contained in:
Pedro Vicente Nunes 2007-10-22 16:02:40 -05:00
parent fad8e0440d
commit aaddd739b4
19 changed files with 31 additions and 0 deletions

View File

@ -17,6 +17,8 @@
#include <string.h>
#include "h5diff.h"
#include "h5diff_common.h"
#include "h5tools_utils.h"
/*-------------------------------------------------------------------------
* Function: parse_input
@ -45,6 +47,13 @@ void parse_input(int argc,
*-------------------------------------------------------------------------
*/
if ( (strcmp("-V",argv[1])==0) )
{
print_version("h5diff");
h5diff_exit(EXIT_SUCCESS);
}
if ( argc==2 && (strcmp("-h",argv[1])==0) )
usage();
@ -81,6 +90,9 @@ void parse_input(int argc,
case 'h':
usage();
break;
case 'V':
print_version("h5diff");
h5diff_exit(EXIT_SUCCESS);
case 'v':
options->m_verbose = 1;
break;
@ -298,6 +310,7 @@ void usage(void)
printf("[obj2] Name of an HDF5 object, in absolute path\n");
printf("[OPTIONS] are:\n");
printf("[-h] Print out this information\n");
printf("[-V] Print HDF5 library version number and exit\n");
printf("[-r] Report mode. Print differences\n");
printf("[-v] Verbose mode. Print differences, list of objects, warnings\n");
printf("[-q] Quiet mode. Do not do output\n");

View File

@ -9,6 +9,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output

View File

@ -9,6 +9,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output

View File

@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output

View File

@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output

View File

@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output

View File

@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output

View File

@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output

View File

@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output

View File

@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output

View File

@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output

View File

@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output

View File

@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output

View File

@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output

View File

@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output

View File

@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output

View File

@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output

View File

@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output

View File

@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output