diff --git a/tasks/command.js b/tasks/command.js index ef2130c..331b0c5 100755 --- a/tasks/command.js +++ b/tasks/command.js @@ -12,8 +12,9 @@ var options = _.defaults({}, defaults); if (process.argv.join('').replace(/\\/g,'/').indexOf('/grunt') === -1) { program - .version('0.1.7') + .version(require('../package').version) .option('-e, --extended', 'Extended log') + .option('-n, --version_name [version_name]', 'Name of the version') .option('-a, --app_name [app_name]', 'Name [app_name]') .option('-b, --branch [branch_name]', 'Branch name [branch_name]') .option('-f, --file [file]', 'File [file]') @@ -31,6 +32,10 @@ if (process.argv.join('').replace(/\\/g,'/').indexOf('/grunt') === -1) { options.tag = false; } + if (program.version_name){ + options.versionName = program.version_name; + } + if (program.app_name){ options.app_name = program.app_name; }