(name, arg_str)
Utility to check if adequate number of arguments are passed to an
        explore command.

        Arguments:
            name: The name of the explore command.
            arg_str: The argument string passed to the explore command.

        Returns:
            True if adequate arguments are passed, false otherwise.

        Raises:
            gdb.GdbError if adequate arguments are not passed.
Utility to check if adequate number of arguments are passed to an
        explore command.
Utility to check if adequate number of arguments are passed to an explore command .
def check_args(name, arg_str):
        """Utility to check if adequate number of arguments are passed to an
        explore command.

        Arguments:
            name: The name of the explore command.
            arg_str: The argument string passed to the explore command.

        Returns:
            True if adequate arguments are passed, false otherwise.

        Raises:
            gdb.GdbError if adequate arguments are not passed.
        """
        if len(arg_str) < 1:
            raise gdb.GdbError("ERROR: '%s' requires an argument."
                               % name)
            return False
        else:
            return True
def check_args ( name , arg_str ) : if len ( arg_str ) < 1 : raise gdb . GdbError ( "ERROR: '%s' requires an argument." % name ) return False else : return True