Skip to content

Commit aeed479

Browse files
committed
bump version , handle help
1 parent 47987c1 commit aeed479

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

mylg.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type Provider interface {
3838
}
3939

4040
const (
41-
version = "0.2.0"
41+
version = "0.2.1"
4242
)
4343

4444
var (
@@ -346,10 +346,15 @@ func discovery() {
346346
//ts = time.Now()
347347
)
348348

349+
d := disc.New(args)
350+
// help requested
351+
if d == nil {
352+
return
353+
}
354+
349355
spin.Prefix = "please wait "
350356
spin.Start()
351357

352-
d := disc.New(args)
353358
// load OUI async
354359
go func() {
355360
wg.Add(1)

0 commit comments

Comments
 (0)