1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-10 21:01:02 +02:00

receive argument override

This commit is contained in:
Zack Scholl 2018-07-06 12:36:51 -07:00
parent c01bc56079
commit ffbc607303

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)
}