Skip to content

Commit

Permalink
ls: Add alternative option name --numeric-id
Browse files Browse the repository at this point in the history
  • Loading branch information
aawsome committed Feb 2, 2024
1 parent 1704d62 commit 8000845
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands/ls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ pub(crate) struct LsCmd {
long: bool,

/// show uid/gid instead of user/group
#[clap(long)]
numeric_uid_gid: bool,
#[clap(long, long("numeric_uid_gid"))]
numeric_id: bool,

/// Listing options
#[clap(flatten)]
Expand Down Expand Up @@ -106,7 +106,7 @@ impl LsCmd {
let (path, node) = item?;
summary.update(&node);
if self.long {
print_node(&node, &path, self.numeric_uid_gid);
print_node(&node, &path, self.numeric_id);
} else {
println!("{path:?} ");
}
Expand Down

0 comments on commit 8000845

Please sign in to comment.