Did you try it this way?

```
register(Generators::ApiGenerator, 'generate', 'generate api <name>','Create a Grape API and model')
```

I think the space in the subcommand might have been messing it up.