Last 12 weeks · 0 commits
2 of 6 standards met
Repository: drizzle-team/brocli. Description: Modern type-safe way of building CLIs Stars: 444, Forks: 5. Primary language: TypeScript. Languages: TypeScript (100%). License: Apache-2.0. Latest release: 0.11.0 (1y ago). Open PRs: 0, open issues: 4. Last activity: 1y ago. Community health: 37%. Top contributors: Sukairo-02, AlexBlokh.
currently if i use camel-cased arguments in , brocli would keep it as-is: would result in something along and while that's mostly personal preference, i think that camel-cased arguments are ugly and prefer them being in . and currently the only way to achieve that is manually putting kebab-cased version everywhere (either as a key or a display name) i propose some way for library users to achieve that more cleanly, probably by exposing some kind of delegate in the config, something like
in some cases a default value for an argument might be from an env. variable (or otherwise computed), in which case using a would a) result in bad ux for the user in (they wouldn't know where the value comes from), and b) might be expensive currently the workaround is to keep the argument as optional, put the default value description in the and use in handler/transform function, which adds a bit of boilerplate i propose an overload for the method that would accept a function and optionally a textual description of what happens there:
Due to the command variable being undefined, the message returned when the missing_args_err is thrown is (You can reproduce this by adding to the echo example in the README) To fix it, I followed the implementation of the . I intended to open a PR but I could not, for the life of me, figure out how use and get it to match the repo's format. Tried in the playground and in VScode but it resulted in numerous changes to the source code.