akamensky / argparse

Argparse for golang. Just because `flag` sucks
MIT License
611 stars 62 forks source link

Allow Flag options to have {Default:true} #119

Closed bmharper closed 1 month ago

bmharper commented 1 month ago

I can't understand the thinking behind the previous behaviour. Why even have a Defaut:true option for a Flag if it's just ignored?

This change removes that special logic so that you get exactly what you specify.

bmharper commented 1 month ago

Ahhh, wait I understand now. There's no way to cancel a flag that is Default:true, so it doesn't make sense from a UX point of view.