Skip to content

Commit

Permalink
cli: Add short -W/-D alias of --pwidth/--pdepth
Browse files Browse the repository at this point in the history
Because I found myself using `--pdepth` fairly frequently.
  • Loading branch information
vincentdephily committed Jan 13, 2025
1 parent e640f3d commit a958d94
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/config/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,14 @@ pub fn build_cli() -> Command {
.help_heading("Format")
.help("Display start time instead of end time");
let pwidth = Arg::new("pwidth").long("pwidth")
.short('W')
.value_name("num")
.num_args(1)
.display_order(25)
.help_heading("Format")
.help("Maximum width of emerge proces commandline (default 60)");
let pdepth = Arg::new("pdepth").long("pdepth")
.short('D')
.value_name("num")
.num_args(1)
.display_order(26)
Expand Down Expand Up @@ -284,8 +286,8 @@ pub fn build_cli() -> Command {
.help_heading("Format")
.help("Set terminal colors")
.long_help(h);
let output = Arg::new("output").short('o')
.long("output")
let output = Arg::new("output").long("output")
.short('o')
.value_name("format")
.global(true)
.display_order(29)
Expand Down

0 comments on commit a958d94

Please sign in to comment.