mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-17 21:37:55 +08:00
e154481c5b
* printer: refactor output to pass down args from cli * msg: add missing max width arg to search cmd * output: rename printer service, merge print with output folder * doc: update changelog and wiki * table: rename print fn
11 lines
267 B
Rust
11 lines
267 B
Rust
use clap::Arg;
|
|
|
|
/// Defines the max table width argument.
|
|
pub fn max_width<'a>() -> Arg<'a, 'a> {
|
|
Arg::with_name("max-table-width")
|
|
.help("Defines a maximum width for the table")
|
|
.short("w")
|
|
.long("max-width")
|
|
.value_name("INT")
|
|
}
|