'Global parameter stuff hard-coded in'

def gen_global_param_completions(self, text):

    txtspt = text.split()
    if (txtspt and (len(txtspt) > 0)):
        for param in self.global_param:
            if (txtspt[(-1)].startswith(u'-') and (not txtspt[(-1)].startswith(u'--')) and param.startswith(u'-') and (not param.startswith(u'--')) and self.validate_completion(param, txtspt[(-1)], text, check_double=False)):
                (yield Completion(param, (- len(txtspt[(-1)])), display_meta=self.global_param_descriptions[param]))
            elif (txtspt[(-1)].startswith(u'--') and self.validate_completion(param, txtspt[(-1)], text, check_double=False)):
                (yield Completion(param, (- len(txtspt[(-1)])), display_meta=self.global_param_descriptions[param]))
        if (txtspt[(-1)] in self.output_options):
            for opt in self.output_choices:
                (yield Completion(opt))
        if ((len(txtspt) > 1) and (txtspt[(-2)] in self.output_options)):
            for opt in self.output_choices:
                if self.validate_completion(opt, txtspt[(-1)], text, check_double=False):
                    (yield Completion(opt, (- len(txtspt[(-1)]))))
