forked from bonsai/harakit
		
	fop(1): finished implementing sysexits
This commit is contained in:
		
							parent
							
								
									3355cb3dc3
								
							
						
					
					
						commit
						b74bbd6c92
					
				@ -23,7 +23,7 @@ use std::{
 | 
				
			|||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
extern crate sysexits;
 | 
					extern crate sysexits;
 | 
				
			||||||
use sysexits::EX_USAGE;
 | 
					use sysexits::{ EX_DATAERR, EX_USAGE };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
fn main() {
 | 
					fn main() {
 | 
				
			||||||
	let argv = args().collect::<Vec<String>>();
 | 
						let argv = args().collect::<Vec<String>>();
 | 
				
			||||||
@ -67,7 +67,7 @@ fn main() {
 | 
				
			|||||||
			argv[0],
 | 
								argv[0],
 | 
				
			||||||
			index.to_string()
 | 
								index.to_string()
 | 
				
			||||||
		);
 | 
							);
 | 
				
			||||||
		exit(1);
 | 
							exit(EX_DATAERR);
 | 
				
			||||||
	});
 | 
						});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if let Some(mut child_stdin) = spawned.stdin.take() {
 | 
						if let Some(mut child_stdin) = spawned.stdin.take() {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user