* guile: cmd-script: advertize --verbose

This commit is contained in:
djcb
2013-03-30 11:09:22 +02:00
parent 5f6c8566f7
commit 6c464473d9

View File

@ -60,16 +60,20 @@ print_scripts (GSList *scripts, gboolean color,
gboolean verbose, const char *rxstr, GError **err) gboolean verbose, const char *rxstr, GError **err)
{ {
GSList *cur; GSList *cur;
const char *verb;
if (!scripts) { if (!scripts) {
g_print ("No scripts available\n"); g_print ("No scripts available\n");
return TRUE; /* not an error */ return TRUE; /* not an error */
} }
verb = verbose ? "" : " (use --verbose for details)";
if (rxstr) if (rxstr)
g_print ("Available scripts matching '%s':\n", rxstr); g_print ("Available scripts matching '%s'%s:\n",
rxstr, verb);
else else
g_print ("Available scripts:\n"); g_print ("Available scripts%s:\n", verb);
for (cur = scripts; cur; cur = g_slist_next (cur)) { for (cur = scripts; cur; cur = g_slist_next (cur)) {