add help feature
This commit is contained in:
parent
3ecd89b063
commit
b76915bfc3
1 changed files with 11 additions and 1 deletions
|
@ -4,6 +4,16 @@
|
|||
|
||||
arbitrario="!"
|
||||
|
||||
if [[ $1 = "-h" ]] || [[ $1 = "--help" ]]; then
|
||||
echo "usage: ./rasplice2passwd.sh [OPTIONS]"
|
||||
echo " "
|
||||
echo "Option Meaning"
|
||||
echo "-y accept the default values"
|
||||
echo " "
|
||||
echo "if rasplice2passwd is invoked without options it guides you through all the features of your new awesome password"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$1" = "-y" ]
|
||||
then
|
||||
sleep 0.1
|
||||
|
@ -28,5 +38,5 @@ rasplice=$(curl -s http://rasplice.contaminati.net/sproloquio.txt | grep -e "[^\
|
|||
if [ ! -z "$limit" ] && [ ! $limit = "n" ]; then
|
||||
rasplice=$(echo $rasplice | cut -c1-$limit)
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo $rasplice$randomchars$arbitrario
|
||||
|
|
Loading…
Reference in a new issue