Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flags ¶
type Flags struct { Config string `short:"c" long:"config" optional:"yes" description:"Path to config file"` Module string `short:"m" long:"module" optional:"yes" description:"Display info about a specific module, i.e.: 'wtf -m=todo'"` Profile bool `short:"p" long:"profile" optional:"yes" description:"Profile application memory usage"` Version bool `short:"v" long:"version" description:"Show version info"` }
Flags is the container for command line flag data
func (*Flags) ConfigFilePath ¶
ConfigFilePath returns the path to the currently-loaded config file
func (*Flags) HasConfig ¶
HasConfig returns TRUE if a config path was passed in, FALSE if one was not
func (*Flags) HasModule ¶
HasModule returns TRUE if a module name was passed in, FALSE if one was not
func (*Flags) HasVersion ¶
HasVersion returns TRUE if the version flag was passed in, FALSE if it was not
Click to show internal directories.
Click to hide internal directories.