Struct parallel_disk_usage::args::Args [−][src]
pub struct Args {}Show fields
pub files: Vec<PathBuf>, pub json_input: bool, pub json_output: bool, pub bytes_format: BytesFormat, pub top_down: 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.
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
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
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
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
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Gets the struct from any iterator such as a Vec
of your making. Read more
Auto Trait Implementations
impl RefUnwindSafe for Args
impl UnwindSafe for Args
Blanket Implementations
Mutably borrows from an owned value. 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
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.