mirror of https://github.com/schollz/croc.git
receive argument override
This commit is contained in:
parent
c01bc56079
commit
ffbc607303
3
main.go
3
main.go
|
@ -171,6 +171,9 @@ func receive(c *cli.Context) error {
|
||||||
if c.GlobalString("code") != "" {
|
if c.GlobalString("code") != "" {
|
||||||
codePhrase = c.GlobalString("code")
|
codePhrase = c.GlobalString("code")
|
||||||
}
|
}
|
||||||
|
if c.Args().First() != "" {
|
||||||
|
codePhrase = c.Args().First()
|
||||||
|
}
|
||||||
return cr.Receive(codePhrase)
|
return cr.Receive(codePhrase)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue