'Generate the completion function and write it to the output file
@return: L{None}'

def write(self):

    gen = ZshArgumentsGenerator(self.options, self.cmdName, self.file)
    gen.extraActions.insert(0, SubcommandAction())
    gen.write()
    gen = ZshArgumentsGenerator(self.subOptions, self.cmdName, self.file)
    gen.write()
