From e0c3a728ae2e3ead40320f2f686e52aae99a3adf Mon Sep 17 00:00:00 2001 From: Kota Kanbe Date: Wed, 30 Aug 2017 14:13:53 +0800 Subject: [PATCH] Fix ping option of discover subcommand #471 (#472) --- commands/discover.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/discover.go b/commands/discover.go index 6f69ed26..a1430e6a 100644 --- a/commands/discover.go +++ b/commands/discover.go @@ -57,6 +57,7 @@ func (p *DiscoverCmd) SetFlags(f *flag.FlagSet) { func (p *DiscoverCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus { // validate if len(f.Args()) == 0 { + logrus.Errorf("Usage: " + p.Usage()) return subcommands.ExitUsageError } @@ -65,7 +66,6 @@ func (p *DiscoverCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface CIDR: cidr, PingOptions: []string{ "-c1", - "-t1", }, NumOfConcurrency: 100, }