summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorGlenn Song <43005495+glennsong09@users.noreply.github.com>2023-10-20 18:28:10 (GMT)
committerGitHub <noreply@github.com>2023-10-20 18:28:10 (GMT)
commit2d551c9b57a176dd23654e42e32d42f8e5aeb21f (patch)
treee142fdb6553e9b2b0a74f01aa38fe9e789ddc2fb /bin
parentb5c63fb3fe6ee04b41d80368b406b5d45502ba00 (diff)
downloadhdf5-2d551c9b57a176dd23654e42e32d42f8e5aeb21f.zip
hdf5-2d551c9b57a176dd23654e42e32d42f8e5aeb21f.tar.gz
hdf5-2d551c9b57a176dd23654e42e32d42f8e5aeb21f.tar.bz2
Add -h and --help as flags in h5cc & h5fc (#3729)
Adds these common help flags in addition to -help
Diffstat (limited to 'bin')
-rw-r--r--bin/h5cc.in22
1 files changed, 14 insertions, 8 deletions
diff --git a/bin/h5cc.in b/bin/h5cc.in
index 4eef3c9..e3dc988 100644
--- a/bin/h5cc.in
+++ b/bin/h5cc.in
@@ -116,15 +116,15 @@ usage() {
# A wonderfully informative "usage" message.
echo "usage: $prog_name [OPTIONS] <compile line>"
echo " OPTIONS:"
- echo " -help This help message."
- echo " -echo Show all the shell commands executed"
- echo " -prefix=DIR Prefix directory to find HDF5 lib/ and include/"
- echo " subdirectories [default: $prefix]"
- echo " -show Show the commands without executing them"
- echo " -showconfig Show the HDF5 library configuration summary"
- echo " -shlib Compile with shared HDF5 libraries [default for hdf5 built"
+ echo " -help | --help | -h This help message."
+ echo " -echo Show all the shell commands executed"
+ echo " -prefix=DIR Prefix directory to find HDF5 lib/ and include/"
+ echo " subdirectories [default: $prefix]"
+ echo " -show Show the commands without executing them"
+ echo " -showconfig Show the HDF5 library configuration summary"
+ echo " -shlib Compile with shared HDF5 libraries [default for hdf5 built"
echo " without static libraries]"
- echo " -noshlib Compile with static HDF5 libraries [default for hdf5 built"
+ echo " -noshlib Compile with static HDF5 libraries [default for hdf5 built"
echo " with static libraries]"
echo " "
echo " <compile line> - the normal compile line options for your compiler."
@@ -256,6 +256,12 @@ for arg in $@ ; do
-help)
usage
;;
+ --help)
+ usage
+ ;;
+ -h)
+ usage
+ ;;
*\"*)
qarg="'"$arg"'"
allargs="$allargs $qarg"