A typescript decorator based simple meta data driven CLI argument parser.
npm install cli-arg-deco 
A typescript decorator based simple meta data driven CLI argument parser.
decorator. With this library, developer can avoid calling cumbersome APIs to retrieve parsed argument and format the usage text. The schema defined by the decorator will be the single source of truth which will be used for both parsing and print the usage text. So that developer can spend minimum time on the CLI argument concerns. yarn add cli-arg-deconpm i cli-arg-decotsconfig.json, add following entries:json
{
"target": "es5",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
...
}
``- Here is example on how to use it: https://github.com/treedoc/cli-arg-deco/blob/main/src/__tests__/CliParser.spec.ts
Copyright 2021 TreeDoc.org
Author/Developer: Jianwu Chen
Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at