Skip to content

Commit 599299a

Browse files
committed
Output
1 parent c2de82f commit 599299a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

SwiftDraw/CommandLine.Configuration.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,14 @@ extension CommandLine {
114114
let ultralightInsets = try parseInsets(from: modifiers[.ultralightInsets])
115115
let black = try parseFileURL(file: modifiers[.black], within: baseDirectory)
116116
let blackInsets = try parseInsets(from: modifiers[.blackInsets])
117+
let output = try parseFileURL(file: modifiers[.output], within: baseDirectory)
118+
117119
let options = try parseOptions(from: modifiers)
118120
let result = source.newURL(for: format, scale: scale)
119121
return Configuration(input: source,
120122
inputUltralight: ultralight,
121123
inputBlack: black,
122-
output: result,
124+
output: output ?? result,
123125
format: format,
124126
size: size,
125127
api: api,

0 commit comments

Comments
 (0)