change to usage
This commit is contained in:
parent
34aef601c0
commit
2b2f110e06
1 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@ HASHLENGTH_DEFAULT=8
|
||||||
PWOPTS_DEFAULT="-c -n -s"
|
PWOPTS_DEFAULT="-c -n -s"
|
||||||
PWLENGTH_DEFAULT=50
|
PWLENGTH_DEFAULT=50
|
||||||
|
|
||||||
show_help () {
|
usage () {
|
||||||
cat << EOF
|
cat << EOF
|
||||||
|
|
||||||
usage: ${0} <OPTIONS> <URL> [<PWLENGTH>]
|
usage: ${0} <OPTIONS> <URL> [<PWLENGTH>]
|
||||||
|
@ -67,7 +67,7 @@ while : ; do
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--help)
|
--help)
|
||||||
show_help
|
usage
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
-l|--hashlength)
|
-l|--hashlength)
|
||||||
|
@ -96,7 +96,7 @@ while : ; do
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo wrong argument $1 >&2
|
echo wrong argument $1 >&2
|
||||||
show_help
|
usage
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue