Skip to content

Commit

Permalink
cli: Rename cols to columns
Browse files Browse the repository at this point in the history
`c` remains as a shortcut.
  • Loading branch information
vincentdephily committed Nov 4, 2023
1 parent 006e8dc commit 8057bd3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,10 @@ pub fn build_cli_nocomplete() -> Command {
.hide_possible_values(true)
.display_order(7)
.help_heading("Format")
.help("Ouput format (cols/c/tab/t)")
.long_help("Ouput format (cols/c/tab/t)\n \
(default): cols on tty, tab otherwise\n \
cols|c: space-aligned columns\n \
.help("Ouput format (columns/c/tab/t)")
.long_help("Ouput format (columns/c/tab/t)\n \
(default): columns on tty, tab otherwise\n \
columns|c: space-aligned columns\n \
tab|t: tab-separated values");

////////////////////////////////////////////////////////////
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ pub enum ColorStyle {
#[derive(Clone, Copy, clap::ValueEnum, PartialEq, Eq)]
pub enum OutStyle {
#[clap(alias("c"))]
Cols,
Columns,
#[clap(alias("t"))]
Tab,
}
Expand Down Expand Up @@ -183,7 +183,7 @@ impl Styles {
};
let out = match args.get_one("output") {
Some(o) => *o,
None if isterm => OutStyle::Cols,
None if isterm => OutStyle::Columns,
None => OutStyle::Tab,
};
let header = args.get_flag("header");
Expand Down

0 comments on commit 8057bd3

Please sign in to comment.