Skip to content

Commit

Permalink
Args: Fix to copy-friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaigalos committed Sep 24, 2022
1 parent 8903cf3 commit 9c9a0e5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dusage"
version = "0.3.1"
version = "0.3.2"
edition = "2021"
authors = ["Mihai Galos <[email protected]>"]
description = "💾 A command line disk usage information tool: disk usage (foreground), inodes (background)."
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ fn main() {
.help("Display inode information."),
)
.arg(
Arg::new("copy_friendly")
.long("copy_friendly")
Arg::new("copy-friendly")
.long("copy-friendly")
.short('c')
.help("Monocrome-friendly background for easy copy-pasting elsewhere."),
)
Expand Down
4 changes: 2 additions & 2 deletions src/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl Writer {
"Mounted on".yellow().bold(),
width = max_width
);
let is_copy_friendly = args.is_present("copy_friendly");
let is_copy_friendly = args.is_present("copy-friendly");
for stat in stats {
if Writer::is_relevant(&stat) {
Writer::write_disk_stat(stat, max_width, is_copy_friendly);
Expand All @@ -59,7 +59,7 @@ impl Writer {
"Mounted on".yellow().bold(),
width = max_width
);
let is_copy_friendly = args.is_present("copy_friendly");
let is_copy_friendly = args.is_present("copy-friendly");
for stat in stats {
if Writer::is_relevant(&stat) {
Writer::write_inodes_stat(stat, max_width, is_copy_friendly);
Expand Down

0 comments on commit 9c9a0e5

Please sign in to comment.