|
|
|
@ -67,9 +67,9 @@ func CommandUsage(command string) error {
|
|
|
|
|
|
|
|
|
|
func wrappedMain() error {
|
|
|
|
|
cli := flag.NewFlagSet(os.Args[0], flag.ExitOnError)
|
|
|
|
|
ipv4 := cli.Bool("4",false, "IPv4")
|
|
|
|
|
ipv6 := cli.Bool("6",false, "IPv6")
|
|
|
|
|
preview := cli.Bool("n",false, "preview")
|
|
|
|
|
ipv4 := cli.Bool("4", false, "IPv4")
|
|
|
|
|
ipv6 := cli.Bool("6", false, "IPv6")
|
|
|
|
|
preview := cli.Bool("n", false, "preview")
|
|
|
|
|
cli.Usage = func() {
|
|
|
|
|
fmt.Printf(help, hostess.GetHostsPath())
|
|
|
|
|
}
|
|
|
|
@ -83,10 +83,10 @@ func wrappedMain() error {
|
|
|
|
|
Preview: *preview,
|
|
|
|
|
}
|
|
|
|
|
if *ipv4 {
|
|
|
|
|
options.IPVersion = options.IPVersion| IPv4
|
|
|
|
|
options.IPVersion = options.IPVersion | IPv4
|
|
|
|
|
}
|
|
|
|
|
if *ipv6 {
|
|
|
|
|
options.IPVersion = options.IPVersion| IPv6
|
|
|
|
|
options.IPVersion = options.IPVersion | IPv6
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
command := cli.Arg(0)
|
|
|
|
|