Permalink
Browse files

make ffind NO_COLOR compliant (see http://no-color.org)

  • Loading branch information...
josephscade
josephscade committed Mar 24, 2018
1 parent a4d9913 commit fec4aa6101f2b3d6d5b06df640e299d0b1fbb190
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/main.rs
@@ -26,7 +26,13 @@ struct Arguments
fn parse_arguments() ->Arguments
{
let mut use_color: bool = true;
let mut use_color: bool = {
match std::env::var_os("NO_COLOR") {
None => true,
Some(val) => false,
}
};
let mut string: String = String::from("");
let mut count: i32 = 0;
let mut all_directories: bool = false;

0 comments on commit fec4aa6

Please sign in to comment.