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

add no-local

This commit is contained in:
Zack Scholl 2018-07-01 13:43:15 -07:00
parent 51f3de95a7
commit 2e545e6594
4 changed files with 40 additions and 23 deletions

View file

@ -69,6 +69,7 @@ func main() {
app.Flags = []cli.Flag{
cli.StringFlag{Name: "relay", Value: "ws://croc3.schollz.com"},
cli.StringFlag{Name: "code, c", Usage: "codephrase used to connect to relay"},
cli.BoolFlag{Name: "no-local", Usage: "disable local mode"},
cli.BoolFlag{Name: "local", Usage: "use only local mode"},
cli.BoolFlag{Name: "debug", Usage: "increase verbosity (a lot)"},
cli.BoolFlag{Name: "yes", Usage: "automatically agree to all prompts"},
@ -91,6 +92,7 @@ func main() {
cr.Yes = c.GlobalBool("yes")
cr.Stdout = c.GlobalBool("stdout")
cr.LocalOnly = c.GlobalBool("local")
cr.NoLocal = c.GlobalBool("no-local")
return nil
}