dmesg: add time-format command arg.

This commit is contained in:
Fuad Ismail 2024-11-24 23:13:51 +07:00
parent 4c7d8f8253
commit 7dc7924915

@ -49,11 +49,21 @@ pub fn uu_app() -> Command {
.help("use JSON output format")
.action(ArgAction::SetTrue),
)
.arg(
Arg::new(options::TIME_FORMAT)
.long("time-format")
.help(
"show timestamp using the given format:\n".to_string()
+ " [delta|reltime|ctime|notime|iso|raw]",
)
.action(ArgAction::Set),
)
}
mod options {
pub const KMSG_FILE: &str = "kmsg-file";
pub const JSON: &str = "json";
pub const TIME_FORMAT: &str = "time-format";
}
struct Dmesg<'a> {