Add support for nested sub-commands.