diff options
Diffstat (limited to 'examples/solv/solv.c')
-rw-r--r-- | examples/solv/solv.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/examples/solv/solv.c b/examples/solv/solv.c index e12a686..814f7e1 100644 --- a/examples/solv/solv.c +++ b/examples/solv/solv.c @@ -767,7 +767,17 @@ rerunsolver: acnt = solver_alternatives_count(solv); if (acnt) { - printf("Have %d alternatives\n\n", acnt); + if (acnt == 1) + printf("Have one alternative:\n"); + else + printf("Have %d alternatives:\n", acnt); + for (i = 1; i <= acnt; i++) + { + Id id, from; + int atype = solver_get_alternative(solv, i, &id, &from, 0, 0, 0); + printf(" - %s\n", solver_alternative2str(solv, atype, id, from)); + } + printf("\n"); answer = yesno("OK to continue (y/n/a)? ", 'a'); } else |