diff --git a/sms/freesms b/sms/freesms index fb0cce5..bbcbe37 100755 --- a/sms/freesms +++ b/sms/freesms @@ -3,7 +3,7 @@ function display_help() { echo "${0} Usage :" - echo -e "\t-u --utilisateur\tSpecify the username" + echo -e "\t-u --user\tSpecify the username" echo -e "\t-p --password\tSpecify the password" echo -e "\t-h or --help\tThis help" echo "" @@ -14,7 +14,7 @@ function display_help() { echo -e "\t\t${0} -u myuser -p mypassword -" } -GET_OPT=`getopt -o hu:p: --long help,utilisateur:,password: -n "${0} parameters" -- "${@}"` +GET_OPT=`getopt -o hu:p: --long help,user:,password: -n "${0} parameters" -- "${@}"` if [ ! "${?}" == "0" ] ; then display_help exit 1 @@ -22,7 +22,7 @@ fi eval set -- "$GET_OPT" while true ; do case ${1} in - -u|--utilisateur) + -u|--user) NOM="${2}" shift 2 ;;