Byron / dua-cli

View disk space usage and delete unwanted data, fast.
https://lib.rs/crates/dua-cli
MIT License
4.19k stars 113 forks source link

dua --help suggests subcommand comes last #71

Closed juhp closed 4 years ago

juhp commented 4 years ago

The help output suggests that subcommands come last:

$ ./.cargo/bin/dua -h
 Sat 11:48:24 
dua 2.10.3
A tool to learn about disk usage, fast!

USAGE:
    dua [FLAGS] [OPTIONS] [input]... [SUBCOMMAND]
: 

but actually that is not true, the subcommands come before the input dirs. (Help for the subcommands correctly reflects that.)

Byron commented 4 years ago

Thanks for letting me know! I believe this is an issue with the underlying commandline argument parser, clap, which comes in via structupt.

I will see if this is fixed with clap 3.0.0 beta.2, and post an issue there if it is not.

Byron commented 4 years ago

Fixed in v2.10.5.