Fix argument parsing bug.

This commit is contained in:
Jonathan Bernard 2018-06-01 01:22:43 -05:00
parent ad1540ca20
commit e26b6eb01c
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# Package
bin = @["db_migrate"]
version = "0.2.5"
version = "0.2.6"
author = "Jonathan Bernard"
description = "Simple tool to handle database migrations."
license = "BSD"

View File

@ -212,7 +212,7 @@ Options:
"""
# Parse arguments
let args = docopt(doc, version = "db-migrate 0.2.5")
let args = docopt(doc, version = "db-migrate 0.2.6")
let exitErr = proc(msg: string): void =
fatal("db_migrate: " & msg)
@ -220,7 +220,7 @@ Options:
# Load configuration file
let configFilename =
if args["--config"]: $args["<config-file>"]
if args["--config"]: $args["--config"]
else: "database.json"
var config: DbMigrateConfig