Fix argument parsing bug.
This commit is contained in:
parent
ad1540ca20
commit
e26b6eb01c
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user