add help feature

This commit is contained in:
panda 2017-03-07 10:57:24 +01:00
parent 3ecd89b063
commit b76915bfc3

View file

@ -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