       die('must provide migration name with --name') unless argv.name
       steps.push migrate.test.bind(migrate, argv.name)
 
+    else
+      usage()
+
   steps.push config.after.bind(config) if config.after?
   steps.push config.afterTest.bind(config) if command is 'test' and config.afterTest?
 

    err.printStack = false
    migrate.error(err)

  command = argv._[0]

  steps = []

  steps.push config.before.bind(config) if config.before?

  switch command
    when '--help'
      usage()

    when 'generate'
      die('must provide migration name with --name') unless argv.name
      steps.push (cb) -> migrate.generate argv.name, (err, filename) ->
