pub struct Opt {Show 28 fields
pub help: Option<bool>,
pub version: Option<bool>,
pub verbose: u8,
pub init: Option<Option<String>>,
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 skip_commit: Option<Vec<String>>,
pub prepend: Option<PathBuf>,
pub output: Option<PathBuf>,
pub tag: Option<String>,
pub bump: bool,
pub bumped_version: bool,
pub body: Option<String>,
pub latest: bool,
pub current: bool,
pub unreleased: bool,
pub topo_order: bool,
pub no_exec: bool,
pub context: bool,
pub strip: Option<Strip>,
pub sort: Sort,
pub range: Option<String>,
pub github_token: Option<String>,
pub github_repo: Option<RemoteValue>,
}Expand description
Command-line arguments to parse.
Fields§
§help: Option<bool>§version: Option<bool>§verbose: u8Increases the logging verbosity.
init: Option<Option<String>>Writes the default configuration file to cliff.toml
config: PathBufSets 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.
skip_commit: Option<Vec<String>>Sets commits that will be skipped 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: boolBumps the version for unreleased changes.
bumped_version: boolPrints bumped version for unreleased changes.
body: Option<String>Sets the template for the changelog body.
latest: boolProcesses the commits starting from the latest tag.
current: boolProcesses the commits that belong to the current tag.
unreleased: boolProcesses the commits that do not belong to a tag.
topo_order: boolSorts the tags topologically.
no_exec: boolDisables the external command execution.
context: boolPrints changelog context as JSON.
strip: Option<Strip>Strips the given parts from the changelog.
sort: SortSets sorting of the commits inside sections.
range: Option<String>Sets the commit range to process.
github_token: Option<String>Sets the GitHub API token.
github_repo: Option<RemoteValue>Sets the GitHub repository.
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.