receive argument override

This commit is contained in:
Zack Scholl 2018-07-06 12:36:51 -07:00
parent c01bc56079
commit ffbc607303
1 changed files with 3 additions and 0 deletions

View File

@ -171,6 +171,9 @@ func receive(c *cli.Context) error {
if c.GlobalString("code") != "" {
codePhrase = c.GlobalString("code")
}
if c.Args().First() != "" {
codePhrase = c.Args().First()
}
return cr.Receive(codePhrase)
}