chzyer/flagly

infinite loop if description includes substring 'arg'

toli-belo opened this issue · 0 comments

try this configuration string:

type Config struct {
MeasurePercent int name:"measure-percent" desc:"measure target percentage" default:50
}

because of the arg in word target this gets hung up in the infinite loop when called flagly.Bind(&c) where c is instance of Config above

Screen Shot 2019-08-09 at 2 47 35 PM