(opt string)
| 70 | } |
| 71 | |
| 72 | func (c *migrateCommand) HasOption(opt string) bool { |
| 73 | for _, specifiedOption := range c.Options { |
| 74 | if specifiedOption == opt { |
| 75 | return true |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | return false |
| 80 | } |
| 81 | |
| 82 | func parseCommand(line string) (*migrateCommand, error) { |
| 83 | cmd := &migrateCommand{} |