Skip to content

Commit 4c6cf58

Browse files
Tomas WinklerTomas Winkler
authored andcommitted
skip getting the range when the argument is not present
1 parent 71f2ea8 commit 4c6cf58

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kentico/kontent-cli",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"description": "Command line interface tool that can be used for generating and running Kontent migration scripts",
55
"main": "./lib/index.js",
66
"types": "./lib/types/index.d.ts",

src/cmds/migration/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const runMigrationCommand: yargs.CommandModule = {
111111
let apiKey = argv.apiKey;
112112
const migrationName = argv.name;
113113
const runAll = argv.all;
114-
const runRange = getRange(argv.range);
114+
const runRange = argv.range && exports.getRange(argv.range);
115115
const debugMode = argv.debug;
116116
const continueOnError = argv.continueOnError;
117117
let migrationsResults: number = 0;

0 commit comments

Comments
 (0)