diff --git a/README.md b/README.md index 84be3a5..e27dde1 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ $ myvc init Incorporates database routine changes into workspace. ```text -$ myvc pull [remote] [-f|--force] [-c|--checkout] +$ myvc pull [remote] [-f|--force] [-c|--checkout] [-u|--update] ``` When *checkout* option is provided, it does the following before export: diff --git a/myvc.js b/myvc.js index 49cbcdf..2ae5db6 100755 --- a/myvc.js +++ b/myvc.js @@ -47,6 +47,9 @@ class MyVC { }; const opts = this.getopts(baseOpts); + if (opts.version) + process.exit(0); + try { const commandName = opts._[0]; if (!command && commandName) { @@ -78,9 +81,6 @@ class MyVC { const operandToOpt = command.usage.operand; if (opts._.length >= 2 && operandToOpt) opts[operandToOpt] = opts._[1]; - - if (opts.version) - process.exit(0); if (opts.help) { this.showHelp(command.localOpts, command.usage, commandName); diff --git a/package.json b/package.json index c6650cc..9a9f624 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "myvc", - "version": "1.2.6", + "version": "1.2.7", "author": "Verdnatura Levante SL", "description": "MySQL Version Control", "license": "GPL-3.0",