Helper function to produce partial usage text from a list of CriticalI_OptionSpec objects.
string
usage_text
(array $specs)
-
array
$specs: The array of CriticalI_OptionSpec objects to produce usage text for
Constructor
CriticalI_OptionSpec
__construct
([string $name = null], [int $argument_type = self::NONE], [string $argument_name = null], [string $description = null])
-
string
$name: The option name (no leading --)
-
int
$argument_type: Argument type (NONE, REQUIRED, or OPTIONAL)
-
string
$argument_name: The argument name (when applicable), used for help output
-
string
$description: Optional description for help output