Skip to content

Commit 55149ce

Browse files
authored
[Fix] prioritize use watermark which from CLI (#17)
1 parent 3769eba commit 55149ce

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

cli/src/watermark.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ pub fn create_watermark(
1010
return Ok(None);
1111
}
1212

13-
let watermark = config_watermark
14-
.as_ref()
15-
.and_then(|watermark| Some(watermark.content.clone()))
16-
.or(cli.watermark.clone())
13+
let watermark = cli
14+
.watermark
15+
.clone()
16+
.or(config_watermark
17+
.clone()
18+
.and_then(|config_watermark| Some(config_watermark.content)))
1719
.and_then(|content| {
1820
Some(
1921
WatermarkBuilder::default()

0 commit comments

Comments
 (0)