summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 09d5704..9313c26 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,8 +1,8 @@
#![forbid(unsafe_code)]
use anyhow::{anyhow, Result};
+use clap::Clap;
use dua::{ByteFormat, TraversalSorting};
use std::{fs, io, io::Write, path::PathBuf, process};
-use structopt::StructOpt;
#[cfg(any(feature = "tui-unix", feature = "tui-crossplatform"))]
mod interactive;
@@ -11,7 +11,7 @@ mod options;
fn main() -> Result<()> {
use options::Command::*;
- let opt: options::Args = options::Args::from_iter(wild::args_os());
+ let opt: options::Args = options::Args::parse_from(wild::args_os());
let walk_options = dua::WalkOptions {
threads: opt.threads.unwrap_or(0),
byte_format: opt.format.map(Into::into).unwrap_or(ByteFormat::Metric),