typedargs/shell.py
def _builtin_help(self, args):
        """Return help information for a context or function."""

        if len(args) == 0:
            return self.list_dir(self.contexts[-1])
        if len(args) == 1:
            func = self.find_function(self.contexts[-1], args[0])
            return annotate.get_help(func)

        help_text = "Too many arguments: " + str(args) + "\n"
        help_text += "Usage: help [function]"
        return help_text
def _builtin_help(self, args):
        """Return help information for a context or function."""

        if len(args) == 0:
            return self.list_dir(self.contexts[-1])
        if len(args) == 1:
            func = self.find_function(self.contexts[-1], args[0])
            return annotate.get_help(func)

        help_text = "Too many arguments: " + str(args) + "\n"
        help_text += "Usage: help [function]"
        return help_text
def _builtin_help ( self , args ) : if len ( args ) == 0 : return self . list_dir ( self . contexts [ - 1 ] ) if len ( args ) == 1 : func = self . find_function ( self . contexts [ - 1 ] , args [ 0 ] ) return annotate . get_help ( func ) help_text = "Too many arguments: " + str ( args ) + "\n" help_text += "Usage: help [function]" return help_text
Return help information for a context or function.
Return help information for a context or function .