Struct ptagslib::bin::Opt
[−]
[src]
pub struct Opt {
pub thread: usize,
pub output: PathBuf,
pub dir: PathBuf,
pub stat: bool,
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 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
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
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
impl Debug for Opt[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl StructOpt for Opt[src]
fn clap<'a, 'b>() -> App<'a, 'b>[src]
Returns the corresponding clap::App.
fn from_clap(matches: &ArgMatches) -> Self[src]
Creates the struct from clap::ArgMatches. It cannot fail with a parameter generated by clap by construction. Read more
fn from_args() -> Self[src]
Gets the struct from the command line arguments. Print the error message and quit the program in case of failure. Read more
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,
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
impl StructOptToml for Opt[src]
fn merge<'a>(from_toml: Self, from_args: Self, args: &ArgMatches) -> Self where
Self: Sized,
Self: StructOpt,
Self: Deserialize<'a>, [src]
Self: Sized,
Self: StructOpt,
Self: Deserialize<'a>,
Merge the struct from TOML and the struct from args
fn from_clap_with_toml<'a>(
toml_str: &'a str,
args: &ArgMatches
) -> Result<Self, Error> where
Self: StructOpt + Deserialize<'a>, [src]
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.
fn from_args_with_toml<'a>(toml_str: &'a str) -> Result<Self, Error> where
Self: StructOpt + Deserialize<'a>, [src]
Self: StructOpt + Deserialize<'a>,
Creates the struct from command line arguments with initial values from TOML.
fn from_iter_with_toml<'a, I>(toml_str: &'a str, iter: I) -> Result<Self, Error> where
I: IntoIterator,
Self: StructOpt + Deserialize<'a>,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone, [src]
I: IntoIterator,
Self: StructOpt + Deserialize<'a>,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Creates the struct from iterator with initial values from TOML.