diff --git a/src/cli/cli.go b/src/cli/cli.go index 72c31f5..845a19a 100644 --- a/src/cli/cli.go +++ b/src/cli/cli.go @@ -171,7 +171,7 @@ func send(c *cli.Context) (err error) { if !c.IsSet("code") { crocOptions.SharedSecret = rememberedOptions.SharedSecret } - if !c.IsSet("pass") { + if !c.GlobalIsSet("pass") { crocOptions.RelayPassword = rememberedOptions.RelayPassword } } @@ -334,7 +334,7 @@ func receive(c *cli.Context) (err error) { if crocOptions.SharedSecret == "" { crocOptions.SharedSecret = rememberedOptions.SharedSecret } - if !c.IsSet("pass") { + if !c.GlobalIsSet("pass") { crocOptions.RelayPassword = rememberedOptions.RelayPassword } }