Standard-version: How to use --skip on CLI

Created on 14 Sep 2017  路  5Comments  路  Source: conventional-changelog/standard-version

Hey 馃憢馃徎,
this is a "am I too stupid to use it or is it actually a bug" kind of thing.

I try to use the cli with the skip parameter which is expecting an object. But how do I exactly pass an object via CLI?

question

Most helpful comment

@weaintplastic you should see here https://github.com/yargs/yargs/blob/master/docs/tricks.md#objects

standard-version use yargs as cmd parser, so that's the way to use object input

A example should be:

standard-version --skip.xxx=true --skip.xxx=true

All 5 comments

I don't think you pass it via cli. you write it in your package.json

But it is documented in the cli --help output. So if I can't use it, it shouldn't be there. But I'd appreciate support for it.

@weaintplastic you should see here https://github.com/yargs/yargs/blob/master/docs/tricks.md#objects

standard-version use yargs as cmd parser, so that's the way to use object input

A example should be:

standard-version --skip.xxx=true --skip.xxx=true

Uh nice! thanks a thousand times @e-cloud

@e-cloud Thanks! Should probably be better documented 馃槃

Was this page helpful?
0 / 5 - 0 ratings