Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.

Commit b89bf0c

Browse files
committed
Add comment describing env var
1 parent 69788d9 commit b89bf0c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

agent/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ fn main() {
4545
if let Some(matches) = matches.subcommand_matches("daemon") {
4646
// TODO support exec mode and export SSH_AUTH_SOCK
4747

48+
// Support command line for testing and an environment variable for
49+
// systemd units.
4850
let pipe: String = matches.value_of("bind-to").map(str::to_string).or(env::var("SSH_AUTH_SOCK").ok()).expect("bind-to is required");
4951
let pipe = Path::new(&pipe);
5052

0 commit comments

Comments
 (0)