We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d955c1 commit cfcc5aeCopy full SHA for cfcc5ae
1 file changed
git-cliff/src/main.rs
@@ -49,8 +49,12 @@ fn main() -> Result<()> {
49
// Generate a changelog.
50
let changelog = git_cliff::run(args.clone())?;
51
52
- // Get output file.
53
- let out: Box<dyn io::Write> = if let Some(path) = &args.output {
+ // Get output destination.
+ let output = args
54
+ .output
55
+ .clone()
56
+ .or(changelog.config.changelog.output.clone());
57
+ let out: Box<dyn io::Write> = if let Some(path) = &output {
58
if path == Path::new("-") {
59
Box::new(io::stdout())
60
} else {
0 commit comments