about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-06-14 03:57:41 +0530
committerAndinus <andinus@nand.sh>2020-06-14 03:57:41 +0530
commit5062d10397b5e34f30606b0260a418f9feb1a34a (patch)
tree2aa172f5bb38441ccd09adff72f5ca9e302453ad
parent8bb985a3dcd4c22c15ed50b666892421e6bcab1c (diff)
downloadara-5062d10397b5e34f30606b0260a418f9feb1a34a.tar.gz
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.
-rwxr-xr-xara.pl3
1 files changed, 2 insertions, 1 deletions
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: