Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cli ¶
var Default *Cli
Default is the default command line. When this package is imported, calling aj.Run will populate this Cli with information about the application and enable command line capabilities for it. An application may implement FlagAdder to add flags to it before it is parsed.
Even if applications do not use aj.Run, they should prefer using this variable so that all flags can be collected in one place. Importantly, if you do this, remember to call the Parse or ParseOrExit methods, as those are normally called by the run function.
Source Files
¶
- cli.go
Click to show internal directories.
Click to hide internal directories.