- ret = lls(lls_check_arg_count(lpr, 0, 1, &errctx));
- if (ret < 0) {
- if (errctx)
- PARA_ERROR_LOG("%s\n", errctx);
- free(errctx);
- return ret;
- }
- if (lls_num_inputs(lpr) == 0) {
- if (pt->background) {
- for (i = 1; (cmd = lls_cmd(i, play_cmd_suite)); i++) {
- sz = xasprintf(&buf, "%s\t%s\n",
- lls_command_name(cmd), lls_purpose(cmd));
- btr_add_output(buf, sz, pt->btrn);
- }
- FOR_EACH_COMMAND(i) {
- sz = xasprintf(&buf, "%s\t%s\n", pp_cmds[i].name,
- pp_cmds[i].description);
- btr_add_output(buf, sz, pt->btrn);
- }
- return 0;
- }