Fixed typo in groovy docopt.
This commit is contained in:
parent
c933d6ac2b
commit
9f38da0043
@ -3,7 +3,7 @@ apply plugin: 'application'
|
|||||||
apply plugin: 'maven'
|
apply plugin: 'maven'
|
||||||
|
|
||||||
group = 'com.jdblabs'
|
group = 'com.jdblabs'
|
||||||
version = '0.2.3'
|
version = '0.2.4'
|
||||||
|
|
||||||
mainClassName = 'com.jdblabs.dbmigrate.DbMigrate'
|
mainClassName = 'com.jdblabs.dbmigrate.DbMigrate'
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Package
|
# Package
|
||||||
|
|
||||||
bin = @["db_migrate"]
|
bin = @["db_migrate"]
|
||||||
version = "0.2.3"
|
version = "0.2.4"
|
||||||
author = "Jonathan Bernard"
|
author = "Jonathan Bernard"
|
||||||
description = "Simple tool to handle database migrations."
|
description = "Simple tool to handle database migrations."
|
||||||
license = "BSD"
|
license = "BSD"
|
||||||
|
@ -15,7 +15,7 @@ import org.slf4j.LoggerFactory
|
|||||||
|
|
||||||
public class DbMigrate {
|
public class DbMigrate {
|
||||||
|
|
||||||
public static final VERSION = "0.2.3"
|
public static final VERSION = "0.2.4"
|
||||||
|
|
||||||
public static final def DOC = """\
|
public static final def DOC = """\
|
||||||
db-migrate.groovy v${VERSION}
|
db-migrate.groovy v${VERSION}
|
||||||
@ -47,7 +47,7 @@ Options:
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
||||||
// Parse arguments
|
// Parse arguments
|
||||||
def opts = new Docopt(DOC).withVersion("wdiwtlt v$VERSION").parse(args)
|
def opts = new Docopt(DOC).withVersion("db-migrate.groovy v$VERSION").parse(args)
|
||||||
|
|
||||||
if (opts['--version']) {
|
if (opts['--version']) {
|
||||||
println "db-migrate.groovy v$VERSION"
|
println "db-migrate.groovy v$VERSION"
|
||||||
|
@ -182,7 +182,7 @@ Options:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
# Parse arguments
|
# Parse arguments
|
||||||
let args = docopt(doc, version = "db-migrate 0.2.3")
|
let args = docopt(doc, version = "db-migrate 0.2.4")
|
||||||
|
|
||||||
let exitErr = proc(msg: string): void =
|
let exitErr = proc(msg: string): void =
|
||||||
fatal("db_migrate: " & msg)
|
fatal("db_migrate: " & msg)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user