mirror of https://github.com/status-im/migrate.git
Make -ext flag required for the create command
This commit is contained in:
parent
872a561495
commit
c3794da4ed
|
@ -128,9 +128,11 @@ Database drivers: `+strings.Join(database.List(), ", ")+"\n")
|
|||
}
|
||||
name := createFlagSet.Arg(0)
|
||||
|
||||
if *extPtr != "" {
|
||||
*extPtr = "." + strings.TrimPrefix(*extPtr, ".")
|
||||
if *extPtr == "" {
|
||||
log.fatal("error: -ext flag must be specified")
|
||||
}
|
||||
*extPtr = "." + strings.TrimPrefix(*extPtr, ".")
|
||||
|
||||
if *dirPtr != "" {
|
||||
*dirPtr = strings.Trim(*dirPtr, "/") + "/"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue