pub struct Args {
Show 14 fields pub files: Vec<PathBuf>, pub json_input: bool, pub json_output: bool, pub bytes_format: BytesFormat, pub top_down: bool, pub align_left: bool, pub quantity: Quantity, pub max_depth: NonZeroUsize, pub total_width: Option<usize>, pub column_width: Option<Vec<usize>>, pub min_ratio: Fraction, pub no_sort: bool, pub silent_errors: bool, pub progress: bool,
}
Expand description

The CLI arguments.

Fields

files: Vec<PathBuf>

List of files and/or directories.

json_input: bool

Read JSON data from stdin.

json_output: bool

Print JSON data instead of an ASCII chart.

bytes_format: BytesFormat

How to display the numbers of bytes.

top_down: bool

Print the tree top-down instead of bottom-up.

align_left: bool

Fill the bars from left to right.

quantity: Quantity

Aspect of the files/directories to be measured.

max_depth: NonZeroUsize

Maximum depth to display the data (must be greater than 0).

total_width: Option<usize>

Width of the visualization.

column_width: Option<Vec<usize>>

Maximum widths of the tree column and width of the bar column.

min_ratio: Fraction

Minimal size proportion required to appear.

no_sort: bool

Preserve order of entries.

silent_errors: bool

Prevent filesystem error messages from appearing in stderr.

progress: bool

Report progress being made at the expense of performance.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns clap::App corresponding to the struct.

Builds the struct from clap::ArgMatches. It’s guaranteed to succeed if matches originates from an App generated by StructOpt::clap called on the same type, otherwise it must panic. Read more

Builds the struct from the command line arguments (std::env::args_os). Calls clap::Error::exit on failure, printing the error message and aborting the program. Read more

Builds the struct from the command line arguments (std::env::args_os). Unlike StructOpt::from_args, returns clap::Error on failure instead of aborting the program, so calling .exit is up to you. Read more

Gets the struct from any iterator such as a Vec of your making. Print the error message and quit the program in case of failure. Read more

Gets the struct from any iterator such as a Vec of your making. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Apply f to self. Read more

Apply f to &self. Read more

Apply f to &mut self. Read more

Apply f to &self where f takes a single parameter of type Param and Self implements trait AsRef<Param>. Read more

Apply f to &mut self where f takes a single parameter of type Param and Self implements trait AsMut<Param>. Read more

Apply f to &self where f takes a single parameter of type Param and Self implements trait Deref<Target = Param>. Read more

Apply f to &mut self where f takes a single parameter of type Param and Self implements trait [DerefMut<Target = Param>]. Read more

Apply f to &self where f takes a single parameter of type Param and Self implements trait Borrow<Param>. Read more

Apply f to &mut self where f takes a single parameter of type Param and Self implements trait BorrowMut<Param>. Read more

Apply f to self. Read more

Apply f to &self. Read more

Apply f to &mut self. Read more

Apply f to &self where f takes a single parameter of type Param and Self implements trait AsRef<Param>. Read more

Apply f to &mut self where f takes a single parameter of type Param and Self implements trait AsMut<Param>. Read more

Apply f to &self where f takes a single parameter of type Param and Self implements trait Deref<Param>. Read more

Apply f to &mut self where f takes a single parameter of type Param and Self implements trait DerefMut<Param>. Read more

Apply f to &self where f takes a single parameter of type Param and Self implements trait Deref<Param>. Read more

Apply f to &mut self where f takes a single parameter of type Param and Self implements trait DerefMut<Param>. Read more

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

If the flags are invalid or unknown, print error and exit with code 1. If --help, print help message and exit with code 0. If --version, print version and exit with code 0. Otherwise, return parsing result. Read more

Apply parse_strict on main CLI arguments.

Run completion generator program.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.