mkideal/cli

add parser tag

mkideal opened this issue · 0 comments

I want add a new tag category, named parser, e.g.

type T struct {
    A string
    B int
}

type argT struct {
    Value T `cli:"t" usage:"parse from json" parser:"json"`
}

Wanted parsing -t '{"A": "string", B:2}' to argT.Value