
Almost all boottool operators support selecting by index or by title.
--info is an exception.  This makes finding an entry by its title very
difficult.  Add support for the use of titles with --info.

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
---
 client/tools/boottool |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/client/tools/boottool b/client/tools/boottool
index e980099..077b941 100755
--- a/client/tools/boottool
+++ b/client/tools/boottool
@@ -554,8 +554,12 @@ sub print_info {
   } elsif ($info =~ /^\d+/) {
     $start=$end=$info
   } else {
-    warn "ERROR:  input should be: #, default, or all.\n";
-    return undef;
+    my $index = $self->_lookup($info);
+    if (!defined $index) {
+      warn "ERROR:  input should be: #, default, all, or a valid title.\n";
+      return undef;
+    }
+    $start=$end=$index;
   }
 
   if ($start < 0 || $end > $#sections-1) {
