flagly icon indicating copy to clipboard operation
flagly copied to clipboard

infinite loop if description includes substring 'arg'

Open toli-belo opened this issue 6 years ago • 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

toli-belo avatar Aug 09 '19 21:08 toli-belo