Ok I have been debugging the Oil CLI lately because I was generating modules, when I set --no-migration it doesn't work, so went to the Command class and printed on console the args list to find out that all options are removed, is this wrong or I am missing something somewhere else?
Because they are not arguments to the function. So they have to be filtered from the list of arguments.
In other words, in your example, "--no-migration" is removed since it is not an argument for generate:model, it is a flag, a switch. Switches or flags are checked in the code using something like