Index: /trunk/FACT++/src/fitsdump.cc
===================================================================
--- /trunk/FACT++/src/fitsdump.cc	(revision 16999)
+++ /trunk/FACT++/src/fitsdump.cc	(revision 17000)
@@ -86,5 +86,5 @@
 
 public:
-    FitsDumper(const string &fname);
+    FitsDumper(const string &fname, const string &tablename);
 
     ///Configures the fitsLoader from the config file and/or command arguments.
@@ -98,5 +98,5 @@
 //!        the ostream where to redirect the outputs
 //
-FitsDumper::FitsDumper(const string &fname) : factfits(fname, "Events"), fFilename(fname)
+FitsDumper::FitsDumper(const string &fname, const string &tablename) : factfits(fname, tablename), fFilename(fname)
 {
 }
@@ -923,4 +923,5 @@
         ("first",       var<size_t>(size_t(0)), "First number of row to read")
         ("limit",       var<size_t>(size_t(0)), "Limit for the maximum number of rows to read (0=unlimited)")
+        ("tablename,t", var<string>(""),        "Name of the table to open. If not specified, first binary table is opened")
 #ifdef HAVE_ROOT
         ("root,r",      po_switch(),            "Enable root mode")
@@ -952,5 +953,5 @@
     }
 
-    FitsDumper loader(conf.Get<string>("fitsfile"));
+    FitsDumper loader(conf.Get<string>("fitsfile"), conf.Get<string>("tablename"));
     if (!loader)
     {
