How to use the ver function from yargs

Find comprehensive JavaScript yargs.ver code examples handpicked from public code repositorys.

17
18
19
20
21
22
23
24
25
26
 * --version=1.2.3 will bump to a specific version and ignore other flags
 */
gulp.task('bump', function() {
    var msg = 'Bumping versions';
    var type = args.type;
    var version = args.ver;
    var options = {};
    if (version) {
        options.version = version;
        msg += ' to ' + version;
fork icon228
star icon838
watch icon62

51
52
53
54
55
56
57
58
59
60
var srcxml = helper.filterFiles(constants.versionFiles, '.xml');

// first we bump the json files
gulp.src(srcjson)
    .pipe(gulpif(args.ver !== undefined, bump({
        version: args.ver
    }), bump({
        type: bumpType
    })))
    .pipe(tap(function(file) {
fork icon18
star icon109
watch icon11

Other functions in yargs

Sorted by popularity

function icon

yargs.argv is the most popular function in yargs (1012 examples)