diff options
author | Andinus <andinus@nand.sh> | 2020-06-14 03:57:41 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-06-14 03:57:41 +0530 |
commit | 5062d10397b5e34f30606b0260a418f9feb1a34a (patch) | |
tree | 2aa172f5bb38441ccd09adff72f5ca9e302453ad | |
parent | 8bb985a3dcd4c22c15ed50b666892421e6bcab1c (diff) | |
download | ara-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-x | ara.pl | 3 |
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: |