Archived
1
0

In view scope, display a line per item if few attributs requested

This commit is contained in:
Mercier Pierre-Olivier 2013-09-05 15:49:46 +02:00
parent e270f53e35
commit 1d29046348

View File

@ -730,7 +730,14 @@ sub cmd_account_view($@)
say BOLD, YELLOW, "dn: ", RESET, YELLOW, $entry->dn, RESET;
for my $attr (@attrs) {
say CYAN, "$attr: ", RESET , join(', ', $entry->get_value($attr));
if ($#attrs < 3) {
for my $entry ($entry->get_value($attr)) {
say CYAN, "$attr: ", RESET , $entry;
}
}
else {
say CYAN, "$attr: ", RESET , join(', ', $entry->get_value($attr));
}
}
$nb++;