r/javascript • • 15d ago

Optique 1.4.0: Default commands, Markdown references, and more focused help

https://github.com/dahlia/optique/discussions/1139
0 Upvotes

7 comments sorted by

3

u/boneskull 15d ago

I wrote something like this (@boneskull/bargs), but I doubt I did a better job. I’ll take a closer look

1

u/Spleeeee 15d ago

It’s pretty good. I was skeptical bc it’s all vibe coded but it’s good.

1

u/ava_896517 6d ago

What held up under a closer look: the command UX, Markdown references, or something else?

1

u/Spleeeee 6d ago

The combinator. The types. The fact that it’s just a parser if you want.

1

u/chriscastro2409 5d ago

The parser-only option is the strongest part: it keeps the argument grammar reusable without requiring the command UX.

2

u/LukaRozman27 15d ago

When adding a new command, run `optique list` to see all current command names and avoid conflicts.

1

u/castrojames2808 12d ago

Seeing the full list helps; duplicate checks at registration could catch conflicts without a manual step.