3.8.17 • Published 8 months ago

@oclif/parser v3.8.17

Weekly downloads
1,007,259
License
MIT
Repository
github
Last release
8 months ago

@oclif/parser

This library has been replaced by @oclif/core and is now in maintenance mode. We will only consider PRs that address security concerns.

arg and flag parser for oclif

Version CircleCI Appveyor CI Known Vulnerabilities Downloads/week License

CLI flag parser.

Usage:

const CLI = require('cli-flags')

const {flags, args} = CLI.parse({
  flags: {
    'output-file': CLI.flags.string({char: 'o'}),
    force: CLI.flags.boolean({char: 'f'})
  },
  args: [
    {name: 'input', required: true}
  ]
})

if (flags.force) {
  console.log('--force was set')
}

if (flags['output-file']) {
  console.log(`output file is: ${flags['output-file']}`)
}

console.log(`input arg: ${args.input}`)

// $ node example.js -f myinput --output-file=myexample.txt
// --force was set
// output file is: myexample.txt
// input arg: myinput
@oclif/command@oclif/config@microsoft/bf-qnamaker@twilio-labs/plugin-flex@tomfrenken/openapi-generator@typhonjs-oclif/configgrampa-generate@vonage/cli-plugin-balance@everything-registry/sub-chunk-675@decoupled/netlify-clidiggo-pkgflipper-pkgdotstoweureka-synchronizer@httptoolkit/netlify-cliinstacdk@geek/mobile@eliperelman/netlify-cligraphql-julia-codegengh-search-cli@fewer/cli@falconandy/ilpma@dxatscale/sfp-cligc2@flyyer/cli@iotize/ionic-toolkit@infracost/compostota-clipaparazzi-cli@infinitebrahmanuniverse/nolb-_ockja-cli-plugin-applicationskja-cli-plugin-numberskja-cli-utils@itly/itlypipedoc-sphinxpipedoc-clipipedoc-examplepipedoc-pandockubenukekubedump@known-as-bmf/tscli@jovotech/cli-command-run@jovotech/cli-command-update@jovotech/target-serverless@jovotech/cli-command-build@jovotech/cli-command-deploy@jovotech/cli-command-get@jovotech/cli-command-new@jovotech/cli-corelaboreatque@kipper/clisol-multisig-clizicode@ambitioncraft/cli@amplitude/ampli@adpt/cli@adobe/aio-cli-plugin-cloudmanager@adiza/sfp-clissh-serverssmenv-cli@sfdx-falcon/command@stackpath/edgeengine-cli@stackpath/serverless-scripting-cliarweb-deployyengenalto-command@zhinan-oppo/snowball-cliaxel-cli@thebrettbarlow/forcelandia-sfdx-plugin@theagilemonkeys/clitode-clitracerbench@wearableintelligence/plugin-data-shipper-cli@wearableintelligence/test-flow-cli@troubkit/ssh-servertwilio-style-cli@vendia/share-cli@versionpress/oclif-command@superdispatch/js-tools@switchboard-xyz/switchboardv2-cli@switchboard-xyz/cliteselagen@togafy/cli@toucansam-bpl/plugin-monitor@toucansam-bpl/plugin-nodetsdpm@yolkai/rush-auto-update@byndyusoft/casc@lapanoid/ts-rock@lapanoid/ts-rock-depslink-type-definitionslonero-cli@martymarron/cliffrancher-proxy@nanduland/cli@monstrs/mctl-generate@netlify/cli-utilsmongo-client-generatornetlify-cli-forknetlify-cli-slim
3.8.16

9 months ago

3.8.17

8 months ago

3.8.14

10 months ago

3.8.15

9 months ago

3.8.13

10 months ago

3.8.12

11 months ago

3.8.11

11 months ago

3.8.10

1 year ago

3.8.9

1 year ago

3.8.8

2 years ago

3.8.7

2 years ago

3.8.6

2 years ago

3.8.5

4 years ago

3.8.4

5 years ago

3.8.3

5 years ago

3.8.2

5 years ago

3.8.1

5 years ago

3.8.0

5 years ago

3.7.3

5 years ago

3.7.2

5 years ago

3.7.0

6 years ago

3.6.3

6 years ago

3.6.2

6 years ago

3.6.1

6 years ago

3.6.0

6 years ago

3.5.3

6 years ago

3.5.2

6 years ago

3.5.1

6 years ago

3.5.0

6 years ago

3.4.1

6 years ago

3.4.0

6 years ago

3.3.3

6 years ago

3.3.2

6 years ago

3.3.1

6 years ago

3.3.0

6 years ago

3.2.13

6 years ago

3.2.12

6 years ago

3.2.11

6 years ago

3.2.10

6 years ago

3.2.9

6 years ago

3.2.8

6 years ago

3.2.7

6 years ago

3.2.6

6 years ago

3.2.5

6 years ago