Skip to content

Commit

Permalink
Rename --config to --sshconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
VojtechVitek committed Jan 16, 2018
1 parent a43add1 commit 05ed171
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/sup/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func init() {
flag.StringVar(&supfile, "f", "./Supfile", "Custom path to Supfile")
flag.Var(&envVars, "e", "Set environment variables")
flag.Var(&envVars, "env", "Set environment variables")
flag.StringVar(&sshConfig, "config", "", "Custom path to ssh_config file")
flag.StringVar(&sshConfig, "sshconfig", "", "Custom path to ~/.ssh/config file")
flag.StringVar(&onlyHosts, "only", "", "Filter hosts using regexp")
flag.StringVar(&exceptHosts, "except", "", "Filter out hosts using regexp")

Expand Down Expand Up @@ -250,7 +250,7 @@ func main() {
network.Hosts = hosts
}

// --config flag location for ssh_config file
// --sshconfig flag location for ssh_config file
if sshConfig != "" {
confHosts, err := sshconfig.ParseSSHConfig(sshConfig)
if err != nil {
Expand Down

0 comments on commit 05ed171

Please sign in to comment.