Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EXTRA = `` /* 338-byte string literal not displayed */
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.: 'wtfutil -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"` // Work-around go-flags misfeatures. If any sub-command is defined // then `wtf` (no sub-commands, the common usage), is warned about. Opt struct { Cmd string `positional-arg-name:"command"` Args []string `positional-arg-name:"args"` } `positional-args:"yes"` // contains filtered or unexported fields }
Flags is the container for command line flag data
func (*Flags) ConfigFilePath ¶
ConfigFilePath returns the path to the currently-loaded config file
func (*Flags) HasCustomConfig ¶ added in v0.19.0
HasCustomConfig 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.