Minor fixes

This commit is contained in:
Juan Ferrer 2022-02-07 12:46:14 +01:00
parent 685e02055c
commit 3996c1996c
3 changed files with 5 additions and 5 deletions

View File

@ -69,7 +69,7 @@ $ myvc init
Incorporates database routine changes into workspace. Incorporates database routine changes into workspace.
```text ```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: When *checkout* option is provided, it does the following before export:

View File

@ -47,6 +47,9 @@ class MyVC {
}; };
const opts = this.getopts(baseOpts); const opts = this.getopts(baseOpts);
if (opts.version)
process.exit(0);
try { try {
const commandName = opts._[0]; const commandName = opts._[0];
if (!command && commandName) { if (!command && commandName) {
@ -79,9 +82,6 @@ class MyVC {
if (opts._.length >= 2 && operandToOpt) if (opts._.length >= 2 && operandToOpt)
opts[operandToOpt] = opts._[1]; opts[operandToOpt] = opts._[1];
if (opts.version)
process.exit(0);
if (opts.help) { if (opts.help) {
this.showHelp(command.localOpts, command.usage, commandName); this.showHelp(command.localOpts, command.usage, commandName);
process.exit(0); process.exit(0);

View File

@ -1,6 +1,6 @@
{ {
"name": "myvc", "name": "myvc",
"version": "1.2.6", "version": "1.2.7",
"author": "Verdnatura Levante SL", "author": "Verdnatura Levante SL",
"description": "MySQL Version Control", "description": "MySQL Version Control",
"license": "GPL-3.0", "license": "GPL-3.0",