[GRASS-SVN] r54686 - grass/trunk/imagery/i.group
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jan 17 11:17:01 PST 2013
Author: martinl
Date: 2013-01-17 11:17:00 -0800 (Thu, 17 Jan 2013)
New Revision: 54686
Modified:
grass/trunk/imagery/i.group/main.c
Log:
i.group: cosmetics in listing (-l/-g)
Modified: grass/trunk/imagery/i.group/main.c
===================================================================
--- grass/trunk/imagery/i.group/main.c 2013-01-17 18:39:30 UTC (rev 54685)
+++ grass/trunk/imagery/i.group/main.c 2013-01-17 19:17:00 UTC (rev 54686)
@@ -71,12 +71,12 @@
r = G_define_flag();
r->key = 'r';
- r->description = _("Remove selected files from specified group");
+ r->description = _("Remove selected files from specified group or subgroup");
r->guisection = _("Maps");
l = G_define_flag();
l->key = 'l';
- l->description = _("List files from specified (sub)group (fancy)");
+ l->description = _("List files from specified (sub)group");
l->guisection = _("Print");
simple_flag = G_define_flag();
@@ -147,16 +147,21 @@
if (sgrp->answer) {
/* list subgroup files */
I_get_subgroup_ref(group, sgrp->answer, &ref);
- if (simple_flag->answer)
+ if (simple_flag->answer) {
+ G_message(_("Subgroup <%s> of group <%s> references the following raster maps:"),
+ sgrp->answer, group);
I_list_subgroup_simple(&ref, stdout);
+ }
else
I_list_subgroup(group, sgrp->answer, &ref, stdout);
}
else {
/* list group files */
I_get_group_ref(group, &ref);
- if (simple_flag->answer)
+ if (simple_flag->answer) {
+ G_message(_("Group <%s> references the following raster maps:"), group);
I_list_group_simple(&ref, stdout);
+ }
else
I_list_group(group, &ref, stdout);
}
@@ -183,9 +188,7 @@
}
}
}
-
- G_done_msg(" ");
-
+
return EXIT_SUCCESS;
}
More information about the grass-commit
mailing list