mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
receive argument override
This commit is contained in:
parent
c01bc56079
commit
ffbc607303
1 changed files with 3 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue