# Functions
AddOption add the option o to set CommandLine if o is not already in set CommandLine.
Arg returns the n'th command-line argument.
Args returns the non-option command line arguments.
Bool creates a flag option that is a bool.
No description provided by the author
Counter creates a counting flag stored as an int.
No description provided by the author
Duration creates an option that parses its value as a time.Duration.
No description provided by the author
Enum creates an option that can only be set to one of the enumerated strings passed in values.
No description provided by the author
Flag is shorthand for CommandLine.Flag.
FlagLong is shorthand for CommandLine.LongFlag.
GetCount returns the number of times the Option associated with name has been seen while parsing the command line arguments.
Getops returns the result of calling Getop in the default option set with the command line arguments found in os.Args.
GetValue returns the final value set to the command-line Option with name.
Int creates an option that parses its value as an integer.
Int16 creates an option that parses its value as a 16 bit integer.
No description provided by the author
Int32 creates an option that parses its value as a 32 bit integer.
No description provided by the author
Int64 creates an option that parses its value as a 64 bit integer.
No description provided by the author
No description provided by the author
IsSet returns true if the Option associated with name was seen while parsing the command line arguments.
List creates an option that returns a slice of strings.
No description provided by the author
Lookup returns the Option associated with name.
NArgs returns the number of non-option command line arguments.
New returns a newly created option set.
Parse calls Parse in the default option set with the command line arguments found in os.Args.
Same as parse but not found in version 1 of getopt.
PrintUsage calls PrintUsage in the default option set.
RequiredGroup marks the group set with Option.SetGroup as required on the command line.
Reset resets all the command line options to the initial state so it appears none of them have been seen.
SetParameters sets the parameters string for printing the command line usage.
SetProgram sets the program name to program.
SetUsage sets the function used by Parse to display the commands usage on error.
Signed creates an option that is stored in an int64 and is constrained by the limits pointed to by l.
No description provided by the author
String returns a value option that stores is value as a string.
No description provided by the author
Uint creates an option that parses its value as an unsigned integer.
Uint16 creates an option that parses its value as a 16 bit unsigned integer.
No description provided by the author
Uint32 creates an option that parses its value as a 32 bit unsigned integer.
No description provided by the author
Uint64 creates an option that parses its value as a 64 bit unsigned integer.
No description provided by the author
No description provided by the author
Unsigned creates an option that is stored in a uint64 and is constrained by the limits pointed to by l.
No description provided by the author
Usage calls the usage function in the default option set.
Visit visits the command-line options in lexicographical order, calling fn for each.
VisitAll visits the options in s in lexicographical order, calling fn for each.
# Constants
Returned on "-".
Returned on "--".
No more arguments.
End of options reached.
a value was set to a long flag.
Terminated due to error.
Getopt is still running.
attempt to set an invalid value.
the options parameter is missing.
No description provided by the author
Terminated by callback function.
Indicates internal error.
an invalid option was encountered.
# Variables
The default set of command-line options.
DisplayWidth is used to determine where to split usage long lines.
HelpColumn is the maximum column position that help strings start to display at.
# Structs
An Error is returned by Getopt when it encounters an error.
No description provided by the author
No description provided by the author
No description provided by the author