def command(self, func):
            
        args, varargs, keywords, defaults = inspect.getargspec(func)
        
        options = []

        # first arg is always "app" : ignore

        defaults = defaults or []
        kwargs = dict(zip(*[reversed(l) for l in (args, defaults)]))

        for arg in args:
            if arg in kwargs:
                
                default=kwargs[arg]

                if isinstance(default, bool):
                    options.append(Option('-%s' % arg[0],
                                          '--%s' % arg,
                                          action="store_true",
                                          dest=arg,
                                          required=False,
                                          default=default))
                else:
                    options.append(Option('-%s' % arg[0],
                                          '--%s' % arg,
                                          dest=arg,
                                          type=unicode,
                                          required=False,
                                          default=default))
        
            else:
                options.append(Option(arg, type=unicode))


        command = Command()
        command.run = func
        command.__doc__ = func.__doc__
        command.option_list = options

        self.add_command(func.__name__, command)

        return func
Render the checkbox with help text.
dataset/ETHPy150Open danjac/Flask-Script/flaskext/script.py/Manager.command--crossover with--dataset/ETHPy150Open mitsuhiko/fungiform/fungiform/widgets.py/Checkbox.with_help_text