| | @@ -42,6 +42,16 @@ |
| 42 | 42 | - [ ] 5. `Str.encode`, `Str.decode`, `Str.toInt`; `Map.remove` and |
| 43 | 43 | `Map.next`; `Sort`; `Math`; `Fmt.real`. Each module's `main` |
| 44 | 44 | tests it. |
| 45 | +- [ ] 5a. Asked for rloc, and every program after it: `Opt`, a |
| 46 | + command line read through one table, after `~/lib/getopt`. |
| 47 | + getopt(3)'s rules with GNU's long options (`-lw`, `-b dev`, |
| 48 | + `--bar=dev`, `--`); the usage line and a sentence for every |
| 49 | + mistake made from the table, so they can't drift from it; |
| 50 | + `-h` and `--help` answered; no global state. `Files` moves from |
| 51 | + `tools` to the library, and `Opt` reads its words with |
| 52 | + `Files.arg`. The report first, for review; then the module, |
| 53 | + its test in its `main`, and `Doc`, `Pretty` and `Mutate` on it. |
| 54 | + Kept out: concha's completion from the table, until asked. |
| 45 | 55 | - [ ] 6. `examples/Sh.raz`: pipelines, redirection, `cd`, `&`, `wait`, |
| 46 | 56 | and Ctrl-C to the job in the foreground, in a few hundred lines. |
| 47 | 57 | Its test runs scripts given with `-c`. |