Skip to content

Commit f248970

Browse files
committed
docs(README): add motivation section
1 parent b3c1f06 commit f248970

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,10 @@ const plain = stripAnsi('\x1b[32m--verbose\x1b[0m'); // '--verbose'
482482
const customTheme = { ...themes.ocean, colors: { flag: ansi.green } };
483483
```
484484

485+
## Motivation
486+
487+
I've always reached for [yargs](https://github.com/yargs/yargs) in my CLI projects. However, I find myself repeatedly doing the same things; I have a sort of boilerplate in my head, ready to go (`requiresArg: true` and `nargs: 1`, amirite?). I don't want boilerplate in my head. I wanted to distill my chosen subset of yargs' behavior into a composable API. And so **bargs** was begat.
488+
485489
## License
486490

487491
Copyright © 2025 [Christopher "boneskull" Hiller](https://github.com/boneskull). Licensed under the [Blue Oak Model License 1.0.0](./LICENSE).

cspell.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@
5353
"Sorhus",
5454
"linkification",
5555
"linkifying",
56-
"wallabyjs"
56+
"wallabyjs",
57+
"ptmux",
58+
"nargs"
5759
],
5860
"words": [
5961
"bupkis",
@@ -62,7 +64,6 @@
6264
"linkifies",
6365
"linkify",
6466
"positionals",
65-
"ptmux",
6667
"subcommand",
6768
"subcommands"
6869
]

0 commit comments

Comments
 (0)