Add deprecation verbose message for --action flag

This commit is contained in:
Tortue Torche 2019-08-10 23:12:17 -04:00 committed by Tortue Torche
parent 2a7979caf7
commit 8f5a8d4986

3
psu
View File

@ -568,7 +568,8 @@ inputs() {
exit 0
;;
-a=*|--action=*|-a|--action)
# DEPRECATED: To keep backwards compatibility with psu 0.1.x
# To keep backwards compatibility with psu 0.1.x
echo_verbose "DEPRECATED: Use 'psu <action> [options]' command, instead of using this '$1' option"
ACTION=$(input_option "$1" "$2" "$ACTIONS")
if [ -n "$2" ] && [[ ! $2 =~ ^-.+$ ]] ; then
# When the second argument is the value of the current option