Documentation
¶
Overview ¶
A simple sub command parser based on the flag package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
func Parse(commands ...SubCommand)
Types ¶
type SubCommand ¶
type SubCommandFlagSet ¶
func NewSubCommandFlagSet ¶
func NewSubCommandFlagSet(cmd SubCommand) *SubCommandFlagSet
func (*SubCommandFlagSet) ParseAndRun ¶
func (fs *SubCommandFlagSet) ParseAndRun(args []string) (string, error)
Click to show internal directories.
Click to hide internal directories.