Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Commit

Permalink
Fix --help detection
Browse files Browse the repository at this point in the history
  • Loading branch information
justin8 committed Apr 19, 2016
1 parent 6df6f46 commit 2715f92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templatectl
Expand Up @@ -144,7 +144,7 @@ cleanup() {

cd "$(dirname "$0")"

if [[ $1 =~ --?h(elp)? ]] || [[ ! $2 ]]; then
if [[ $1 =~ ^--?h(elp)?$ ]] || [[ ! $2 ]]; then
usage
exit 1
fi
Expand Down

0 comments on commit 2715f92

Please sign in to comment.