diff options
author | Andinus <andinus@nand.sh> | 2020-06-14 18:23:28 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-06-14 18:23:28 +0530 |
commit | f5d7af46a44872fb9c841e13f1b3e8aac48185aa (patch) | |
tree | d8587ad43818fa6aa566c729e653063b06f3dbe3 | |
parent | dc87ff67f47010cb2b25e6cff93c02bb0b8859ff (diff) | |
download | ara-f5d7af46a44872fb9c841e13f1b3e8aac48185aa.tar.gz |
Change warning color to yellow from red
-rwxr-xr-x | ara.pl | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ara.pl b/ara.pl index 96a8ab1..61f066e 100755 --- a/ara.pl +++ b/ara.pl @@ -45,7 +45,7 @@ GetOptions( if ( $use_local_file and $get_latest ) { - warn LOCALCOLOR RED "Cannot use --local & --latest together + warn LOCALCOLOR YELLOW "Cannot use --local & --latest together Overriding --latest option"; undef $get_latest; } @@ -71,8 +71,8 @@ undef $hide{'last updated'} if exists $hide{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" +warn LOCALCOLOR YELLOW "Cannot hide state column" if exists $hide{state}; +warn LOCALCOLOR YELLOW "Cannot hide notes column" if exists $hide{notes} and $state_notes; sub HelpMessage { @@ -120,7 +120,8 @@ if ( -e $file ) { $file_mtime = Time::Moment->from_epoch( $file_stat->mtime ); } else { if ( $use_local_file ) { - warn "File '$file' doesn't exist\nFetching latest...\n"; + warn LOCALCOLOR YELLOW "File '$file' doesn't exist +Fetching latest..."; undef $use_local_file; } } |