pub struct Opt {Show 23 fields
pub help: Option<bool>,
pub version: Option<bool>,
pub verbose: u8,
pub config: PathBuf,
pub workdir: Option<PathBuf>,
pub repository: Option<Vec<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 bump: bool,
pub body: Option<String>,
pub init: bool,
pub latest: bool,
pub current: bool,
pub unreleased: bool,
pub topo_order: bool,
pub context: bool,
pub strip: Option<Strip>,
pub sort: Sort,
pub range: Option<String>,
}
Expand description
Command-line arguments to parse.
Fields§
§help: Option<bool>
§version: Option<bool>
§verbose: u8
Increases the logging verbosity.
config: PathBuf
Sets the configuration file.
workdir: Option<PathBuf>
Sets the working directory.
repository: Option<Vec<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.
bump: bool
Bumps the version for unreleased changes.
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.
topo_order: bool
Sorts the tags topologically.
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§
source§impl Args for Opt
impl Args for Opt
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentssource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
source§impl FromArgMatches for Opt
impl FromArgMatches for Opt
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn 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>
ArgMatches
to self
.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
ArgMatches
to self
.