We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b6df36 commit 74eefbeCopy full SHA for 74eefbe
1 file changed
src/bin/tectonic/v2cli.rs
@@ -238,6 +238,10 @@ pub struct BuildCommand {
238
/// Open built document using system handler
239
#[structopt(long)]
240
open: bool,
241
+
242
+ /// Specify a target to be used by the build
243
+ #[structopt(long, help = "Specify the target of the build.")]
244
+ target: Option<String>,
245
}
246
247
impl BuildCommand {
@@ -262,6 +266,14 @@ impl BuildCommand {
262
266
setup_options.only_cached(self.only_cached);
263
267
264
268
for output_name in doc.output_names() {
269
270
+ // Added checking to see if the output name matches the specified target name
271
+ if let Some(out) = self.target.clone() {
272
+ if out != output_name {
273
+ continue;
274
+ }
275
276
265
277
let mut builder = doc.setup_session(output_name, &setup_options, status)?;
278
279
builder
0 commit comments