mirror of
https://github.com/lov3b/ecb-rates.git
synced 2025-02-22 18:00:11 +01:00
Disable the time header if no-time is set, in table-mode
This commit is contained in:
parent
f116b06c0c
commit
d5b8ce8116
@ -114,6 +114,9 @@ async fn main() -> ExitCode {
|
|||||||
.iter()
|
.iter()
|
||||||
.map(|x| {
|
.map(|x| {
|
||||||
let mut t: TableRef = x.into();
|
let mut t: TableRef = x.into();
|
||||||
|
if cli.no_time {
|
||||||
|
t.disable_header();
|
||||||
|
}
|
||||||
t.sort(&cli.sort_by);
|
t.sort(&cli.sort_by);
|
||||||
t.to_string()
|
t.to_string()
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user