aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornotgne22020-12-27 10:59:32 -0700
committernotgne22020-12-27 10:59:32 -0700
commit72b04b0ae84f68a3314de32da87381097a54fbe5 (patch)
treea9b5dee80b44043a11f4a49c05153f98d3e348b3 /src
parentbbc2a2d984fc5ce3da0cbb74c4482f3953fb734e (diff)
Fix log dir/file mismatch
Diffstat (limited to 'src')
-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(),
);
}