From f525cab4781d7c57dd34ee246a7772f580f73373 Mon Sep 17 00:00:00 2001 From: Glenn Song Date: Thu, 19 Oct 2023 16:28:12 -0700 Subject: [PATCH 1/2] Add -h and --help as flags for help message --- bin/h5cc.in | 8 +++++++- fortran/src/h5fc.in | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/bin/h5cc.in b/bin/h5cc.in index 4eef3c95eee..32970c3dd14 100644 --- a/bin/h5cc.in +++ b/bin/h5cc.in @@ -116,7 +116,7 @@ usage() { # A wonderfully informative "usage" message. echo "usage: $prog_name [OPTIONS] " echo " OPTIONS:" - echo " -help This help message." + 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]" @@ -256,6 +256,12 @@ for arg in $@ ; do -help) usage ;; + --help) + usage + ;; + -h) + usage + ;; *\"*) qarg="'"$arg"'" allargs="$allargs $qarg" diff --git a/fortran/src/h5fc.in b/fortran/src/h5fc.in index b793648d854..5ad6cd1a7bc 100644 --- a/fortran/src/h5fc.in +++ b/fortran/src/h5fc.in @@ -110,7 +110,7 @@ usage() { # A wonderfully informative "usage" message. echo "usage: $prog_name [OPTIONS] " echo " OPTIONS:" - echo " -help This help message." + 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]" @@ -230,6 +230,12 @@ for arg in $@ ; do -help) usage ;; + --help) + usage + ;; + -h) + usage + ;; *\"*) qarg="'"$arg"'" allargs="$allargs $qarg" From 3c60854dde9ce8a83941bd6c07b3fb2f6dbfaf5c Mon Sep 17 00:00:00 2001 From: Glenn Song Date: Fri, 20 Oct 2023 10:14:46 -0700 Subject: [PATCH 2/2] Line up text with help message --- bin/h5cc.in | 14 +++++++------- fortran/src/h5fc.in | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/bin/h5cc.in b/bin/h5cc.in index 32970c3dd14..e3dc988a576 100644 --- a/bin/h5cc.in +++ b/bin/h5cc.in @@ -117,14 +117,14 @@ usage() { echo "usage: $prog_name [OPTIONS] " echo " OPTIONS:" 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 " -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 " - the normal compile line options for your compiler." diff --git a/fortran/src/h5fc.in b/fortran/src/h5fc.in index 5ad6cd1a7bc..c5da815f3f6 100644 --- a/fortran/src/h5fc.in +++ b/fortran/src/h5fc.in @@ -111,14 +111,14 @@ usage() { echo "usage: $prog_name [OPTIONS] " echo " OPTIONS:" 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 " -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 " - the normal compile line options for your compiler."