Skip to content

Commit 2a2a189

Browse files
committed
docs(README): add more snark
1 parent cb91aeb commit 2a2a189

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ All tasks
180180

181181
### Nested Commands (Subcommands)
182182

183-
Commands can be nested to arbitrary depth. Use the **factory pattern** for full type inference of parent globals:
183+
Commands can be nested to arbitrary depth. _The only limit is your contempt for your users._ Use the **factory pattern**:
184184

185185
```typescript
186186
import { bargs, opt, pos } from '@boneskull/bargs';
@@ -220,7 +220,7 @@ Adding origin: https://github.com/...
220220
$ git remote remove origin
221221
```
222222

223-
The factory function receives a `CliBuilder` that already has parent globals typed, so all nested command handlers get full type inference for merged `global + command` options. See `examples/nested-commands.ts` for a full example.
223+
The factory function receives a `CliBuilder` that already has parent globals typed, so all nested command handlers get full type inference for merged `global + command` options. See [`examples/nested-commands.ts`](./examples/nested-commands.ts) for a full example.
224224

225225
## API
226226

0 commit comments

Comments
 (0)