0.1.21 • Published 3 years ago

@nfts/argparser v0.1.21

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

@nfts/argparser

import { Command } from '@nfts/argparser';

Command.command('commandName', 'This is a command description')
  .argument({
    name: 'sub_command',
    description: 'This is a sub-command description'
  })
  .option({
    name: '--option',
    alias: '-o',
    description: 'This is an parameters description'
  })
  .callback(() => {
    // do something
  })
  .parse(['gmf', 'give', '--adj']);

修改:

  • 多次设置同一个参数,最后可以解析成一个集合
  • 终端输出信息的美化
  • 对 --xxx/-x=xxx 类型参数解析的支持
0.1.21

3 years ago

0.1.2

3 years ago

0.1.16

3 years ago

0.1.17

3 years ago

0.1.19

3 years ago

0.1.3

3 years ago

0.1.1

3 years ago

0.0.1

3 years ago