mirror of
https://github.com/sharkdp/bat
synced 2026-08-09 19:51:48 +00:00
Implement --file-name<name> option
- can specify filename to be displayed when printing. - useful for when piping data from STDIN Closes #654
This commit is contained in:
@@ -222,6 +222,7 @@ impl App {
|
||||
.transpose()?
|
||||
.unwrap_or_else(|| vec![LineRange { lower: 0, upper: 0 }]),
|
||||
),
|
||||
filename: self.matches.value_of("file-name").or_else(|| None),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user