p cli opts added for clean useless pkg

This commit is contained in:
Francois B 2018-03-25 22:30:58 +02:00
parent 022b985596
commit 04caca6abd
2 changed files with 2 additions and 1 deletions

View file

@ -565,6 +565,7 @@ function usage () {
printf " "$BOLDVERT"-t"$NORMAL" : install TLP for Laptops and low energy usage\n" printf " "$BOLDVERT"-t"$NORMAL" : install TLP for Laptops and low energy usage\n"
printf " "$BOLDVERT"-n"$NORMAL" : install lastest Nvidia graphic drivers\n" printf " "$BOLDVERT"-n"$NORMAL" : install lastest Nvidia graphic drivers\n"
printf " "$BOLDVERT"-u"$NORMAL" : update system (apt,snap,...)\n" printf " "$BOLDVERT"-u"$NORMAL" : update system (apt,snap,...)\n"
printf " "$BOLDVERT"-p"$NORMAL" : clean useless packages\n"
printf " "$BOLDVERT"-v"$NORMAL" : show verison number\n" printf " "$BOLDVERT"-v"$NORMAL" : show verison number\n"
printf " "$BOLDVERT"-h"$NORMAL" : show help & informations\n" printf " "$BOLDVERT"-h"$NORMAL" : show help & informations\n"
printf "\n" printf "\n"

View file

@ -50,7 +50,7 @@ echo "--[ Yggdrasil log ]--[ "$cDate" ]--[ "$cTime" ]-----------------------" >>
# #
# arguments/options management with getopts # arguments/options management with getopts
while getopts ":h,v,f,c,u,a,d,k,s,t,n,w,T" option; do while getopts ":h,v,f,c,u,a,d,k,s,t,n,w,p,T" option; do
case "$option" in case "$option" in
T) #test purpose only T) #test purpose only
yggInit yggInit