Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/Schniz/cmd-ts. 💻 A type-driven command line argument parser cmd-ts.now.sh
Something went wrong. Try again.
command #
This is what we call "a combinator": command takes multiple parsers and combine them into one parser that can also take raw user input using its run function.
Config #
name(required): A name for the commandversion: A version for the commandhandler(required): A function that takes all the arguments and do something with itargs(required): An object where the keys are the argument names (how they'll be treated in code) and the values are parsersaliases: A list of other names this command can be called with. Useful withsubcommands
Usage #
{{#include ../../example/app2.ts}}