Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add -h and --help as flags for help message #3729

Merged
merged 2 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion bin/h5cc.in
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ usage() {
# A wonderfully informative "usage" message.
echo "usage: $prog_name [OPTIONS] <compile line>"
echo " OPTIONS:"
echo " -help This help message."
echo " -help | --help | -h This help message."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably align the other text with "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]"
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
8 changes: 7 additions & 1 deletion fortran/src/h5fc.in
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ usage() {
# A wonderfully informative "usage" message.
echo "usage: $prog_name [OPTIONS] <compile line>"
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]"
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