pub struct Opt {Show 20 fields
pub verbose: u8,
pub config: PathBuf,
pub workdir: Option<PathBuf>,
pub repository: Option<PathBuf>,
pub include_path: Option<Vec<Pattern>>,
pub exclude_path: Option<Vec<Pattern>>,
pub with_commit: Option<Vec<String>>,
pub prepend: Option<PathBuf>,
pub output: Option<PathBuf>,
pub tag: Option<String>,
pub body: Option<String>,
pub init: bool,
pub latest: bool,
pub current: bool,
pub unreleased: bool,
pub date_order: bool,
pub context: bool,
pub strip: Option<Strip>,
pub sort: Sort,
pub range: Option<String>,
}
Expand description
Command-line arguments to parse.
Fields
verbose: u8
Increases the logging verbosity.
config: PathBuf
Sets the configuration file.
workdir: Option<PathBuf>
Sets the working directory.
repository: Option<PathBuf>
Sets the git repository.
include_path: Option<Vec<Pattern>>
Sets the path to include related commits.
exclude_path: Option<Vec<Pattern>>
Sets the path to exclude related commits.
with_commit: Option<Vec<String>>
Sets custom commit messages to include in the changelog.
prepend: Option<PathBuf>
Prepends entries to the given changelog file.
output: Option<PathBuf>
Writes output to the given file.
tag: Option<String>
Sets the tag for the latest version.
body: Option<String>
Sets the template for the changelog body.
init: bool
Writes the default configuration file to cliff.toml
latest: bool
Processes the commits starting from the latest tag.
current: bool
Processes the commits that belong to the current tag.
unreleased: bool
Processes the commits that do not belong to a tag.
date_order: bool
Sorts the tags chronologically.
context: bool
Prints changelog context as JSON.
strip: Option<Strip>
Strips the given parts from the changelog.
sort: Sort
Sets sorting of the commits inside sections.
range: Option<String>
Sets the commit range to process.
Trait Implementations
sourceimpl CommandFactory for Opt
impl CommandFactory for Opt
sourcefn into_app<'b>() -> Command<'b>
fn into_app<'b>() -> Command<'b>
Replaced with `CommandFactory::command
Deprecated, replaced with CommandFactory::command
sourcefn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
Replaced with `CommandFactory::command_for_update
Deprecated, replaced with CommandFactory::command_for_update
sourcefn command_for_update<'help>() -> App<'help>
fn command_for_update<'help>() -> App<'help>
sourceimpl FromArgMatches for Opt
impl FromArgMatches for Opt
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Instantiate Self
from ArgMatches
, parsing the arguments as needed. Read more
sourcefn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
Assign values from ArgMatches
to self
.
sourceimpl Parser for Opt
impl Parser for Opt
sourcefn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
sourcefn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
sourcefn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, exit on error
sourcefn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.
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