Skip to content

Commit

Permalink
Show usage for --help too
Browse files Browse the repository at this point in the history
  • Loading branch information
janhoy committed Jun 26, 2024
1 parent 4561009 commit 1337500
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ PELICAN_OPTS=""
export SITEURL="https://solr.apache.org/"

function usage {
echo "Usage: ./build.sh [-l] [<other pelican arguments>]"
echo "Usage: ./build.sh [-l] [-h] [<other pelican arguments>]"
echo " -l Live build and reload source changes on localhost:8000"
echo " --help Show full help for options that Pelican accepts"
}
Expand Down Expand Up @@ -103,6 +103,7 @@ while getopts ":lbh-:" opt; do
- )
case "${OPTARG}" in
help )
usage
echo
echo "Below is a list of other arguments you can use which will be passed to pelican."
echo
Expand Down

0 comments on commit 1337500

Please sign in to comment.