From 8f5a8d498659cc1b7ecd423198304ba75ce565b4 Mon Sep 17 00:00:00 2001 From: Tortue Torche Date: Sat, 10 Aug 2019 23:12:17 -0400 Subject: [PATCH] Add deprecation verbose message for --action flag --- psu | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/psu b/psu index d1688ea..2e63a76 100644 --- a/psu +++ b/psu @@ -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 [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