mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-18 17:40:55 +08:00
[svn-r14216] add a -V version information for h5diff
tested: windows, linux
This commit is contained in:
parent
fad8e0440d
commit
aaddd739b4
@ -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");
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user