1 2 3 4 5 6 7 8 9 10 11 12 13
use Print; use action::{IFlagAction, ParseResult}; impl IFlagAction for Print { fn parse_flag(&self) -> ParseResult { if self.0.ends_with("\n") { print!("{}", self.0); } else { println!("{}", self.0); } return ParseResult::Exit; } }