def option(*args, **kwargs):
    def decorator(func):
        help_text = ""
        if not getattr(func, 'has_options', False):
            func.has_options = True
            func.options = []
            help_text += 'Options:\n-------\n'
        try:
            option = optparse.Option(*args, **kwargs)
        except optparse.OptionError:
            help_text += args[0] + "\n"
        else:
            help_text += _format_option(option) + "\n"
            func.options.append(option)
        func.__doc__ += _indent(func.__doc__, help_text)
        return func
    return decorator
Returns a string describing a form based on the model
dataset/ETHPy150Open Calysto/metakernel/metakernel/magic.py/option--crossover with--dataset/ETHPy150Open django-extensions/django-extensions/django_extensions/management/commands/describe_form.py/describe_form