From 28356a5714fdcffa76b11457103a5b7b8d508348 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 17 Jul 2013 18:12:59 +0000 Subject: docs --- it.class | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'it.class') diff --git a/it.class b/it.class index 1fb95cc..1c12ad4 100644 --- a/it.class +++ b/it.class @@ -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 -- cgit v1.2.3