Index: trunk/FACT++/src/root2sql.cc
===================================================================
--- trunk/FACT++/src/root2sql.cc	(revision 19278)
+++ trunk/FACT++/src/root2sql.cc	(revision 19279)
@@ -74,4 +74,5 @@
         ("dry-run",        po_switch(),               "Skip any query which changes the databse (might result in consecutive failures)")
         ("print-connection", po_switch(),             "Print database connection information")
+        ("print-ls",       po_switch(),               "Calls TFile::ls()")
         ("print-branches", po_switch(),               "Print the branches found in the tree")
         ("print-leaves",   po_switch(),               "Print the leaves found in the tree (this is what is processed)")
@@ -110,4 +111,5 @@
         "the tree name. It can be overwritten using --table.\n"
         "\n"
+        "To get a list of the contents (keys and trees) of a root file, you can use --print-ls. "
         "The name of each column to which data is filled from a leave is obtained from "
         "the leaves' names. The leave names can be checked using --print-leaves. "
@@ -370,4 +372,5 @@
 
     const bool print_connection  = conf.Get<bool>("print-connection");
+    const bool print_ls          = conf.Get<bool>("print-ls");
     const bool print_branches    = conf.Get<bool>("print-branches");
     const bool print_leaves      = conf.Get<bool>("print-leaves");
@@ -397,6 +400,13 @@
     }
 
-    if (verbose>0)
+    if (verbose>0 && !print_ls)
         cout << "File: " << file << endl;
+
+    if (print_ls)
+    {
+        cout << '\n';
+        f.ls();
+        cout << '\n';
+    }
 
     TTree *T = 0;
