Skip to content

Commit

Permalink
Adapt to rename of "out_dir" flag to "artifact_dir" (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
yotamofek authored Aug 27, 2024
1 parent 086d747 commit 8137102
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ pub struct Build {
pub all_targets: bool,

/// Copy final artifacts to this directory (unstable)
#[arg(long, value_name = "PATH", help_heading = heading::COMPILATION_OPTIONS)]
pub out_dir: Option<PathBuf>,
#[arg(long, alias = "out-dir", value_name = "PATH", help_heading = heading::COMPILATION_OPTIONS)]
pub artifact_dir: Option<PathBuf>,

/// Output the build plan in JSON (unstable)
#[arg(long, help_heading = heading::COMPILATION_OPTIONS)]
Expand Down Expand Up @@ -199,8 +199,8 @@ impl Build {
if self.all_targets {
cmd.arg("--all-targets");
}
if let Some(dir) = self.out_dir.as_ref() {
cmd.arg("--out-dir").arg(dir);
if let Some(dir) = self.artifact_dir.as_ref() {
cmd.arg("--artifact-dir").arg(dir);
}
if self.build_plan {
cmd.arg("--build-plan");
Expand Down
2 changes: 1 addition & 1 deletion tests/cmd/build.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Compilation Options:
--timings[=<FMTS>...] Timing output formats (unstable) (comma separated): html, json
-r, --release Build artifacts in release mode, with optimizations
--unit-graph Output build graph in JSON (unstable)
--out-dir <PATH> Copy final artifacts to this directory (unstable)
--artifact-dir <PATH> Copy final artifacts to this directory (unstable)
--build-plan Output the build plan in JSON (unstable)

Feature Selection:
Expand Down

0 comments on commit 8137102

Please sign in to comment.