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

Report the ArgGroup::id for this set of arguments
Append to Command so it can instantiate Self. Read more
Append to Command so it can update self. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Build a Command that can instantiate Self. Read more
Build a Command that can update self. Read more
Formats the value using the given formatter. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Assign values from ArgMatches to self.
Assign values from ArgMatches to self.
Parse from std::env::args_os(), exit on error
Parse from std::env::args_os(), return Err on error.
Parse from iterator, exit on error
Parse from iterator, return Err on error.
Update from iterator, exit on error
Update from iterator, return Err on error.

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
Get completion content.
Get completion string.
Generate a shell completion file.
Create and run the completion generator.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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
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
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.