Skip to content

Commit 2f40275

Browse files
committed
Updated readme for 0.4.2
1 parent b2d2efa commit 2f40275

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@
77
> non-idiomatic to PHP, this has been done to make integrating changes more
88
> efficient.
99
10-
> Though all of the 0.4.0 tests pass, there may still be issues. Please
11-
> visit the [PHP port's issues page](http://github.com/docopt/docopt.php)
10+
> As a result, unless a bug is present only in the PHP version, pull requests
11+
> are unlikely to be accepted unless they are themselves direct transliterations
12+
> of bugfixes in the Python version.
13+
14+
> Though all of the 0.4.2 tests pass, there may still be issues as this port is
15+
> relatively new. Please visit the
16+
> [PHP port's issues page](http://github.com/docopt/docopt.php)
1217
> for a list of all current known issues and caveats.
1318
1419
> Furthermore, the PHP API **is a moving target**. Please see
@@ -17,7 +22,6 @@
1722
1823

1924

20-
2125
Isn't it awesome how `optparse` and `argparse` generate help messages
2226
based on your code?!
2327

@@ -127,6 +131,9 @@ $doc = "Usage: my_program.php [-hso FILE] [--quiet | --verbose] [INPUT ...]
127131
";
128132
```
129133

134+
The optional second argument contains an array of additional data to influence
135+
docopt. The following keys are supported:
136+
130137
- `argv` is an optional argument vector; by default it is the argument vector
131138
passed to your program (`array_slice($_SERVER['argv'], 1)`). You can supply
132139
it with the list of strings, e.g. `array('--verbose', '-o', 'hai.txt')`.
@@ -179,6 +186,7 @@ argument, `args['--speed']` is an option, and `args['move']` is a command.
179186
Help message format
180187
===============================================================================
181188

189+
182190
Help message consists of 2 parts:
183191

184192
- Usage pattern, e.g.::

0 commit comments

Comments
 (0)