Compare commits
	
		
			1 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 70adbe6c9b | 
@ -7,13 +7,13 @@ fn main() {
 | 
				
			|||||||
    let args: Vec<String> = env::args().collect();
 | 
					    let args: Vec<String> = env::args().collect();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    let conf = grep::Config::new(&args).unwrap_or_else(|err| {
 | 
					    let conf = grep::Config::new(&args).unwrap_or_else(|err| {
 | 
				
			||||||
        println!("Problem parsing arguments: {}", err);
 | 
					        eprintln!("Problem parsing arguments: {}", err);
 | 
				
			||||||
        process::exit(1);
 | 
					        process::exit(1);
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
    //let filename = &conf.filename.clone();
 | 
					    //let filename = &conf.filename.clone();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if let Err(e) = grep::run(conf) {
 | 
					    if let Err(e) = grep::run(conf) {
 | 
				
			||||||
        println!("Big bad bada boom!\n{:?}", e);
 | 
					        eprintln!("Big bad bada boom!\n{:?}", e);
 | 
				
			||||||
        //println!("Big bad bada boom!\n{:?}", e.kind());
 | 
					        //println!("Big bad bada boom!\n{:?}", e.kind());
 | 
				
			||||||
        //println!("Big bad bada boom!\n{}", e.description());
 | 
					        //println!("Big bad bada boom!\n{}", e.description());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user