Minor fixes
This commit is contained in:
parent
685e02055c
commit
3996c1996c
|
@ -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:
|
||||||
|
|
6
myvc.js
6
myvc.js
|
@ -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) {
|
||||||
|
@ -78,9 +81,6 @@ class MyVC {
|
||||||
const operandToOpt = command.usage.operand;
|
const operandToOpt = command.usage.operand;
|
||||||
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);
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue