Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Join ¶
Join is like Optional, but reads up to n arguments joined with spaces and sets the one named flag. if n is not set, reads all the remaining arguments.
func Optional ¶
Optional takes a list of flag names. For each flag name it attempts to read the next arg and set the flag with the corresponding name. for instance: Optional("server", "disc", "size") will attempt to read 3 arguments, setting the "server" flag to the first, "disc" to the 2nd, "size" to the third.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.