def _check_args(self, str_cmd, cmd):
    expected_nb_args = len(cmd.params)
    args = str_cmd.split()[1:]
    if (len(args) != expected_nb_args):
        self.print_usage(str_cmd.split()[0])
        return False
    return True
def _check_args(self, str_cmd, cmd):
    expected_nb_args = len(cmd.params)
    args = str_cmd.split()[1:]
    if (len(args) != expected_nb_args):
        self.print_usage(str_cmd.split()[0])
        return False
    return True