mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
Allow options to be set in any position
Currently options following regular arguments are not interpreted as
options. This fixes that.
Users can still treat values starting with a hyphen (`-`) as regular
arguments by using `--`, e.g.:
dust -d 2 -r ~/Documents -F -- --this-is-my-dir
This commit is contained in:
@@ -7,7 +7,6 @@ pub fn build_cli() -> Command {
|
|||||||
Command::new("Dust")
|
Command::new("Dust")
|
||||||
.about("Like du but more intuitive")
|
.about("Like du but more intuitive")
|
||||||
.version(env!("CARGO_PKG_VERSION"))
|
.version(env!("CARGO_PKG_VERSION"))
|
||||||
.trailing_var_arg(true)
|
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new("depth")
|
Arg::new("depth")
|
||||||
.short('d')
|
.short('d')
|
||||||
|
|||||||
Reference in New Issue
Block a user