go-arg icon indicating copy to clipboard operation
go-arg copied to clipboard

Supporting Go template for help output?

Open marco-m opened this issue 4 years ago • 1 comments

Hello, I have this not fully backed idea: instead of the currently hard-coded help layout, go-arg could allow an optional layout specified with Go template. I got this idea from flaggy.

What do you think?

marco-m avatar Aug 24 '21 19:08 marco-m

Seems like a great idea.

On Tue, Aug 24, 2021 at 12:12 PM Marco Molteni @.***> wrote:

Hello, I have this not fully backed idea: instead of the currently hard-coded help layout, go-arg could allow an optional layout specified with Go template. I got this idea from flaggy https://github.com/integrii/flaggy/blob/master/examples/customTemplate/main.go .

What do you think?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/alexflint/go-arg/issues/163, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE4J5YF76GLTLZJP6IV3L3T6PVIVANCNFSM5CXPJIRA .

alexflint avatar Aug 24 '21 20:08 alexflint