diff options
| author | Paul Buetow <paul@buetow.org> | 2021-11-07 11:54:16 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2021-11-07 11:54:16 +0200 |
| commit | c5679ae69d0ffd17d6675d2b275b62daa1522ced (patch) | |
| tree | 91fb0774cfba3b90218a040fc93dace638e320c1 /cmd/dgrep/main.go | |
| parent | 4121a7fc9c24384566760708e2ee7a03de0bd484 (diff) | |
can set ssh private key path file via env var
Diffstat (limited to 'cmd/dgrep/main.go')
| -rw-r--r-- | cmd/dgrep/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/dgrep/main.go b/cmd/dgrep/main.go index 6924cf3..7c3cc3e 100644 --- a/cmd/dgrep/main.go +++ b/cmd/dgrep/main.go @@ -44,7 +44,7 @@ func main() { flag.StringVar(&args.LogDir, "logDir", "~/log", "Log dir") flag.StringVar(&args.Logger, "logger", config.DefaultClientLogger, "Logger name") flag.StringVar(&args.LogLevel, "logLevel", config.DefaultLogLevel, "Log level") - flag.StringVar(&args.SSHPrivateKeyPathFile, "key", "", "Path to private key") + flag.StringVar(&args.SSHPrivateKeyFilePath, "key", "", "Path to private key") flag.StringVar(&args.RegexStr, "regex", ".", "Regular expression") flag.StringVar(&args.ServersStr, "servers", "", "Remote servers to connect") flag.StringVar(&args.UserName, "user", userName, "Your system user name") |
