Struct git_cliff::args::Opt[][src]

pub struct Opt {
Show 13 fields pub verbose: u8, pub config: PathBuf, pub workdir: Option<PathBuf>, pub repository: Option<PathBuf>, pub prepend: Option<PathBuf>, pub output: Option<PathBuf>, pub tag: Option<String>, pub body: Option<String>, pub init: bool, pub latest: bool, pub unreleased: bool, pub strip: Option<String>, 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 repository to parse commits from.

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.

unreleased: bool

Processes the commits that do not belong to a tag.

strip: Option<String>

Strips the given parts from the changelog.

range: Option<String>

Sets the commit range to process.

Trait Implementations

Formats the value using the given formatter. Read more

Returns clap::App corresponding to the struct.

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

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

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

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

Gets the struct from any iterator such as a Vec of your making. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.