Skip to content

Commit

Permalink
Add -h and --help as flags in h5cc & h5fc (HDFGroup#3729)
Browse files Browse the repository at this point in the history
Adds these common help flags in addition to -help
  • Loading branch information
glennsong09 authored and jhendersonHDF committed Oct 20, 2023
1 parent 7a7f04d commit 5b03393
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 16 deletions.
22 changes: 14 additions & 8 deletions bin/h5cc.in
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -256,6 +256,12 @@ for arg in $@ ; do
-help)
usage
;;
--help)
usage
;;
-h)
usage
;;
*\"*)
qarg="'"$arg"'"
allargs="$allargs $qarg"
Expand Down
22 changes: 14 additions & 8 deletions fortran/src/h5fc.in
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,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."
Expand Down Expand Up @@ -230,6 +230,12 @@ for arg in $@ ; do
-help)
usage
;;
--help)
usage
;;
-h)
usage
;;
*\"*)
qarg="'"$arg"'"
allargs="$allargs $qarg"
Expand Down

0 comments on commit 5b03393

Please sign in to comment.