diff options
-rw-r--r-- | it.class | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -651,11 +651,12 @@ static function imageconvert($p) * Parse command line options with Usage given as template and return assoc array. Example: (like grep --help) * Usage: myprogram.php [OPTIONS] PATTERN * -s, --short Use short ouput - * -f, --file=FILE Use FILE for input + * -f, --file=FILE Use FILE for input [foo.txt] * -x EXTENSION Ignore EXTENSION * Mandatory arguments from the Usage: line are returned under their (lowercased!) name. * All non-option arguments are returned in 'args' - * Option text must be indented; if long and short option present, value is stored in long one. Defaults in [ ] at end of line + * Option text must be indented; if long and short option present, value is stored in long one. + * For long opts with arguments, = is mandatory. Defaults in [ ] at end of line * Options without arguments store true or false under their key * Options -h and --help will be handled internally by printing usage and exiting * When printing, the usage will be de-indented so the first line starts in the first column |