Skip to content

Commit

Permalink
Add hooks.sh usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Sep 17, 2023
1 parent a98295b commit 074812f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions scripts/hooks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,25 @@ fi

arg_generate_docs=0

function show_usage() {
echo "usage: ./scripts/hooks.sh [OPTION]"
echo "options:"
echo " --fix | --generate-docs to generate docs"
echo " -h | --help to show this help"
}

for arg in "$@"
do
if [ "$arg" == "--fix" ] || [ "$arg" == "--generate-docs" ]
then
arg_generate_docs=1
elif [ "$arg" == "-h" ] || [ "$arg" == "--help" ]
then
show_usage
exit 0
else
show_usage
exit 1
fi
done

Expand Down

0 comments on commit 074812f

Please sign in to comment.