pub struct Opt {Show 22 fields
pub thread: usize,
pub output: PathBuf,
pub dir: PathBuf,
pub stat: bool,
pub list: Option<String>,
pub bin_ctags: PathBuf,
pub bin_git: PathBuf,
pub opt_ctags: Vec<String>,
pub opt_git: Vec<String>,
pub opt_git_lfs: Vec<String>,
pub verbose: bool,
pub exclude_lfs: bool,
pub include_untracked: bool,
pub include_ignored: bool,
pub include_submodule: bool,
pub validate_utf8: bool,
pub unsorted: bool,
pub fields: Option<String>,
pub languages: Option<String>,
pub exclude: Vec<String>,
pub completion: Option<String>,
pub config: bool,
}
Fields
thread: usize
Number of threads
output: PathBuf
Output filename ( filename ‘-’ means output to stdout )
dir: PathBuf
Search directory
stat: bool
Show statistics
list: Option<String>
Filename of input file list
Path to ctags binary
bin_git: PathBuf
Path to git binary
Options passed to ctags
opt_git: Vec<String>
Options passed to git
opt_git_lfs: Vec<String>
Options passed to git-lfs
verbose: bool
Verbose mode
exclude_lfs: bool
Exclude git-lfs tracked files
include_untracked: bool
Include untracked files
include_ignored: bool
Include ignored files
include_submodule: bool
Include submodule files
validate_utf8: bool
Validate UTF8 sequence of tag file
unsorted: bool
Disable tags sort
fields: Option<String>
Disable tags sort
languages: Option<String>
Languages
exclude: Vec<String>
Glob pattern of exclude file ( ex. –exclude ‘*.rs’ )
completion: Option<String>
Generate shell completion file
config: bool
Generate configuration sample file
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Opt where
Opt: Default,
impl<'de> Deserialize<'de> for Opt where
Opt: Default,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl StructOpt for Opt
impl StructOpt for Opt
sourcefn from_clap(matches: &ArgMatches<'_>) -> Self
fn from_clap(matches: &ArgMatches<'_>) -> Self
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
sourcefn from_args() -> Self
fn from_args() -> Self
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
sourcefn from_args_safe() -> Result<Self, Error>
fn from_args_safe() -> Result<Self, Error>
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
sourcefn 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
sourcefn 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
sourceimpl StructOptToml for Opt
impl StructOptToml for Opt
sourcefn merge<'a>(from_toml: Self, from_args: Self, args: &ArgMatches<'_>) -> Self where
Self: Sized,
Self: StructOpt,
Self: Deserialize<'a>,
fn merge<'a>(from_toml: Self, from_args: Self, args: &ArgMatches<'_>) -> Self where
Self: Sized,
Self: StructOpt,
Self: Deserialize<'a>,
Merge the struct from TOML and the struct from args
sourcefn from_clap_with_toml<'a>(
toml_str: &'a str,
args: &ArgMatches<'_>
) -> Result<Self, Error> where
Self: StructOpt + Deserialize<'a>,
fn from_clap_with_toml<'a>(
toml_str: &'a str,
args: &ArgMatches<'_>
) -> Result<Self, Error> where
Self: StructOpt + Deserialize<'a>,
Creates the struct from clap::ArgMatches
with initial values from TOML.
sourcefn from_args_with_toml<'a>(toml_str: &'a str) -> Result<Self, Error> where
Self: StructOpt + Deserialize<'a>,
fn from_args_with_toml<'a>(toml_str: &'a str) -> Result<Self, Error> where
Self: StructOpt + Deserialize<'a>,
Creates the struct from command line arguments with initial values from TOML.
sourcefn from_iter_with_toml<'a, I>(toml_str: &'a str, iter: I) -> Result<Self, Error> where
Self: StructOpt + Deserialize<'a>,
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter_with_toml<'a, I>(toml_str: &'a str, iter: I) -> Result<Self, Error> where
Self: StructOpt + Deserialize<'a>,
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Creates the struct from iterator with initial values from TOML.
Auto Trait Implementations
impl RefUnwindSafe for Opt
impl Send for Opt
impl Sync for Opt
impl Unpin for Opt
impl UnwindSafe for Opt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more