Optique 0.3.0: Dependent options and flexible composition

洪 民憙 (Hong Minhee) @hongminhee@hackers.pub

Optique 0.3.0 introduces several enhancements aimed at simplifying the development of complex CLI applications. This release focuses on expanding parser flexibility and refining the help system, incorporating valuable community feedback. Key updates include the introduction of required Boolean flags using the new `flag()` parser, more flexible type defaults in `withDefault()` to support union types, and an extended `or()` capacity that now supports up to 10 parsers. The `merge()` combinator has also been enhanced to work with any object-producing parser, and context-aware help is now available through the `longestMatch()` combinator. Additionally, version display support has been added to both `@optique/core` and `@optique/run`, along with structured output functions for consistent terminal formatting. These improvements collectively provide developers with more powerful tools for building intuitive and feature-rich command-line interfaces.

Read more →
3

Welcome to the Newsmast Programming Channel. A curated feed of posts from the Fediverse, handmade by @newsmast@newmast.social, and broadcasting to Bluesky (if you've opted-in via @bsky.brid.gy)!

To post to the community just add to your post. You can create a list to follow this account, and exclude the posts from your home timeline.

Wondering why you’ve been boosted by this account? Check out this thread: newsmast.social/@newsmast/1119