blob: d0335c562dc5046a9a9da6ed0df4c42bb5311544 (
plain)
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;
}
}
|