Documentation ¶
Overview ¶
Package text - User facing strings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrorAmbiguousArgument = "Ambiguous option '%s', matches %v!"
ErrorAmbiguousArgument holds the text for ambiguous argument error. It has a string placeholder '%s' for the passed option and a []string list of matches.
var ErrorArgumentIsNotKeyValue = "Argument error for option '%s': Should be of type 'key=value'!"
ErrorArgumentIsNotKeyValue holds the text for Map type options where the argument is not of key=value type. It has a string placeholder '%s' for the name of the option missing the argument.
var ErrorArgumentWithDash = "Missing argument for option '%s'!\n" +
"If passing arguments that start with '-' use --option=-argument"
ErrorArgumentWithDash holds the text for missing argument error in cases where the next argument looks like an option (starts with '-'). It has a string placeholder '%s' for the name of the option missing the argument.
var ErrorConvertArgumentToFloat64 = "Argument error: Can't convert string to float64: '%s'"
var ErrorConvertArgumentToInt = "Argument error: Can't convert string to int: '%s'"
var ErrorConvertToFloat64 = "Argument error for option '%s': Can't convert string to float64: '%s'"
ErrorConvertToFloat64 holds the text for Float64 Coversion argument error. It has two string placeholders ('%s'). The first one for the name of the option with the wrong argument and the second one for the argument that could not be converted.
var ErrorConvertToInt = "Argument error for option '%s': Can't convert string to int: '%s'"
ErrorConvertToInt holds the text for Int Coversion argument error. It has two string placeholders ('%s'). The first one for the name of the option with the wrong argument and the second one for the argument that could not be converted.
var ErrorMissingArgument = "Missing argument for option '%s'!"
ErrorMissingArgument holds the text for missing argument error. It has a string placeholder '%s' for the name of the option missing the argument.
var ErrorMissingRequiredArgument = "ERROR: Missing required argument"
var ErrorMissingRequiredNamedArgument = "ERROR: Missing %s"
var ErrorMissingRequiredOption = "Missing required parameter '%s'"
ErrorMissingRequiredOption holds the text for missing required option error. It has a string placeholder '%s' for the name of the missing option.
var HelpArgumentsHeader = "ARGUMENTS"
HelpArgumentsHeader holds the header text for the argument list
var HelpCommandsHeader = "COMMANDS"
HelpCommandsHeader holds the header text for the command list
var HelpNameHeader = "NAME"
HelpNameHeader holds the header text for the command name
var HelpOptionsHeader = "OPTIONS"
HelpOptionsHeader holds the header text for the option list
var HelpRequiredOptionsHeader = "REQUIRED PARAMETERS"
HelpRequiredOptionsHeader holds the header text for the required parameters
var HelpSynopsisHeader = "SYNOPSIS"
HelpSynopsisHeader holds the header text for the synopsis
var MessageOnInterrupt = "Interrupt signal received"
MessageOnInterrupt holds the text for the message to be printed when an interrupt is received.
var MessageOnUnknown = "Unknown option '%s'"
var WarningOnUnknown = "WARNING: Unknown option '%s'"
WarningOnUnknown holds the text for the unknown option message. It has a string placeholder '%s' for the name of the option missing the argument. This one includes the WARNING prefix because it is printed directly to the Writer output.
Functions ¶
This section is empty.
Types ¶
This section is empty.