diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-02-14 14:44:42 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-02-14 14:44:42 (GMT) |
commit | 847f01442b20cbe7132a1533e493e06975b48bdc (patch) | |
tree | c3939e0da50f811dc126d719ac6aa17e7103e590 /tools/h5copy/h5copy.c | |
parent | bb392083b2a81aa942678e06a537a3c0ab5c08aa (diff) | |
download | hdf5-847f01442b20cbe7132a1533e493e06975b48bdc.zip hdf5-847f01442b20cbe7132a1533e493e06975b48bdc.tar.gz hdf5-847f01442b20cbe7132a1533e493e06975b48bdc.tar.bz2 |
[svn-r13299] Description:
Put paths to testfile input & output directories in one place, making it
easier to modify them if we choose to re-arrange our testfile locations in
the future (this should probably be carried over to other test scripts).
Make h5copy exit more cleanly if no command line parameters are given.
Tested on:
Linux/32 2.6 (chicago)
Linux/64 2.6 (chicago2)
Diffstat (limited to 'tools/h5copy/h5copy.c')
-rw-r--r-- | tools/h5copy/h5copy.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/h5copy/h5copy.c b/tools/h5copy/h5copy.c index 926be0f..cbbb738 100644 --- a/tools/h5copy/h5copy.c +++ b/tools/h5copy/h5copy.c @@ -183,6 +183,12 @@ main (int argc, const char *argv[]) /* initialize h5tools lib */ h5tools_init(); + /* Check for no command line parameters */ + if(argc == 1) { + usage(); + leave(EXIT_SUCCESS); + } /* end if */ + /* parse command line options */ while ((opt = get_option(argc, argv, s_opts, l_opts)) != EOF) { |