From 5062d10397b5e34f30606b0260a418f9feb1a34a Mon Sep 17 00:00:00 2001 From: Andinus Date: Sun, 14 Jun 2020 03:57:41 +0530 Subject: Warn about not hiding notes column only if notes option was passed Warning about not hiding notes column will only print if user passed --notes. --- ara.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ara.pl') diff --git a/ara.pl b/ara.pl index a5cc438..38b5114 100755 --- a/ara.pl +++ b/ara.pl @@ -61,7 +61,8 @@ undef $hide{'last updated'} # Warn when user tries to hide these columns. warn LOCALCOLOR RED "Cannot hide state column" if exists $hide{state}; -warn LOCALCOLOR RED "Cannot hide notes column" if exists $hide{notes}; +warn LOCALCOLOR RED "Cannot hide notes column" + if exists $hide{notes} and $state_notes; sub HelpMessage { print LOCALCOLOR GREEN "Options: -- cgit 1.4.1-2-gfad0