Skip to content

Commit 1d6e676

Browse files
committed
Keep the getopt() slide, but recommend the manual
1 parent f2d347a commit 1d6e676

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

slides/getopt.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ array(
2020
```
2121
<!-- .element: class="fragment" -->
2222

23+
[php.net/manual/en/function.getopt.php](http://php.net/manual/en/function.getopt.php)<!-- .element: class="fragment" -->
24+
2325
Note:
2426

2527
* Retrieves options passed via CLI
28+
* Hold-over from C, and most frameworks have their own abstraction for this
2629
* Define expected arguments, returns array of those arguments that are present
27-
- Only options specified will be included
28-
- Flags will be FALSE, but present!
30+
* Best to refer to the manual, as it's needlessly complicated

0 commit comments

Comments
 (0)