{"repo":"cacjs/cac","free":true,"listed":false,"github":"https://github.com/cacjs/cac","clone":"git clone https://github.com/cacjs/cac.git","description":"Simple yet powerful framework for building command-line apps.","language":"TypeScript","stars":3121,"topics":["command-line","framework","commander","minimist","cli","node","deno"],"license":"MIT","category":"cli-tools","readme_excerpt":"Introduction C ommand A nd C onquer is a JavaScript library for building CLI apps. Features - Super light-weight : No dependency, just a single file. - Easy to learn . There're only 4 APIs you need to learn for building simple CLIs: cli.option cli.version cli.help cli.parse . - Yet so powerful . Enable features like default command, git-like subcommands, validation for required arguments and options, variadic arguments, dot-nested options, automated help message generation and so on. - Developer friendly . Written in TypeScript. Install Usage Simple Parsing Use CAC as simple argument parser: Display Help Message and Version Command-specific Options You can attach options to a command. A command's options are validated when the command is used. Any unknown options will be reported as an error. However, if an action-based command does not define an action, then the options are not validated. If you really want to use unknown options, use command.allowUnknownOptions . Dash in option names Options in kebab-case should be referenced in camelCase in your code: In fact --clear-screen and --clearScreen are both mapped to options.clearScreen . Brackets When using brackets in command name, angled brackets indicate required command arguments, while square bracket indicate optional arguments. When using brackets in option name, angled brackets indicate that a string / number value is required, while square bracket indicate that the value can also be true . Negated Options To allow an opt","default_branch":null,"files":null,"tree":[],"storefront":"/r/cacjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cacjs/cac/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}