Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 247 Bytes

GUIDE.md

File metadata and controls

14 lines (9 loc) · 247 Bytes

Guide for flagx

Convert to *flag.FlagSet

flagx.FlagSet has a AsStdlibFlagSet() which does this:

fset := flagx.NewFlagSet("name")
// add flags to fset

fs := fset.AsStdlibFlagSet()

// fs now has all flags and aliases as fset