[−][src]Struct sane_fmt::cli_opt::CliOpt
Fields
write: bool
Whether to write or check
details: DetailLevel
File diff detail [possible values: count, name, diff]
hide_passed: bool
Do not log passed filenames
color: When
When to use terminal color [possible values: auto, never, always]
log_format: LogFormat
Format of log messages [possible values: human, github-actions]
files: Vec<String>
Files to process
If none are provided, a default set of files will be assumed
Implementations
impl CliOpt
[src]
pub fn get() -> Self
[src]
Parse arguments from env::args
.
Unlike StructOpt::from_args
, this function treat unknown flags as errors.
Trait Implementations
impl Debug for CliOpt
[src]
impl StructOpt for CliOpt
[src]
fn clap<'a, 'b>() -> App<'a, 'b>
[src]
fn from_clap(matches: &ArgMatches<'_>) -> Self
[src]
fn from_args() -> Self
[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]
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,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
impl StructOptInternal for CliOpt
[src]
fn augment_clap<'a, 'b>(app: App<'a, 'b>) -> App<'a, 'b>
[src]
fn is_subcommand() -> bool
[src]
fn from_subcommand(_sub: (&'b str, Option<&'b ArgMatches<'a>>)) -> Option<Self>
[src]
Auto Trait Implementations
impl RefUnwindSafe for CliOpt
impl Send for CliOpt
impl Sync for CliOpt
impl Unpin for CliOpt
impl UnwindSafe for CliOpt
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Node for T where
T: Any + ?Sized,
T: Any + ?Sized,
impl<X> Pipe for X
[src]
fn pipe<Return>(self, f: impl FnOnce(Self) -> Return) -> Return
[src]
fn pipe_ref<'a, Return>(&'a self, f: impl FnOnce(&'a Self) -> Return) -> Return
[src]
fn pipe_mut<'a, Return>(
&'a mut self,
f: impl FnOnce(&'a mut Self) -> Return
) -> Return
[src]
&'a mut self,
f: impl FnOnce(&'a mut Self) -> Return
) -> Return
impl<T> Send for T where
T: ?Sized,
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
T: ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,