aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/activate.rs2
-rw-r--r--src/utils/deploy.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/activate.rs b/src/activate.rs
index f64e069..9c23068 100644
--- a/src/activate.rs
+++ b/src/activate.rs
@@ -37,7 +37,7 @@ struct Opts {
/// Print debug logs to output
#[clap(short, long)]
debug_logs: bool,
- /// File to print logs to (including the background activation process)
+ /// Directory to print logs to (including the background activation process)
#[clap(long)]
log_dir: Option<String>,
diff --git a/src/utils/deploy.rs b/src/utils/deploy.rs
index 3aced6c..93cebee 100644
--- a/src/utils/deploy.rs
+++ b/src/utils/deploy.rs
@@ -37,7 +37,7 @@ fn build_activate_command(
}
if let Some(log_dir) = log_dir {
- self_activate_command = format!("{} --log-file {}", self_activate_command, log_dir);
+ self_activate_command = format!("{} --log-dir {}", self_activate_command, log_dir);
}
if let Some(sudo_cmd) = &sudo {
@@ -72,7 +72,7 @@ fn test_activation_command_builder() {
debug_logs,
log_dir
),
- "sudo -u test /nix/store/blah/etc/activate-rs '/blah/profiles/test' '/nix/store/blah/etc' --temp-path /tmp --confirm-timeout 30 --magic-rollback --auto-rollback --debug-logs --log-file /tmp/something.txt"
+ "sudo -u test /nix/store/blah/etc/activate-rs '/blah/profiles/test' '/nix/store/blah/etc' --temp-path /tmp --confirm-timeout 30 --magic-rollback --auto-rollback --debug-logs --log-dir /tmp/something.txt"
.to_string(),
);
}