Index: trunk/FACT++/src/fitsdump.cc
===================================================================
--- trunk/FACT++/src/fitsdump.cc	(revision 12876)
+++ trunk/FACT++/src/fitsdump.cc	(revision 12877)
@@ -83,5 +83,5 @@
  //   int  WriteRow(ostream &, const vector<MyColumn*> &, const vector<int> &, unsigned char *, const vector<pair<int, int> >&) const;
 
-    bool OpenFile(const string &);        /// Open a file
+    bool OpenFile(const string &, bool);        /// Open a file
     bool OpenTable(const string &);       /// Open a table
 
@@ -178,5 +178,5 @@
 //! Loads the fits file based on the current parameters
 //
-bool FitsDumper::OpenFile(const string &filename)
+bool FitsDumper::OpenFile(const string &filename, bool force)
 {
     if (fFile)
@@ -187,5 +187,5 @@
 
     try {
-        fFile = new fits(filename);
+        fFile = new fits(filename, force);
     }
     catch (std::runtime_error e)
@@ -464,5 +464,5 @@
     if (conf.Has("fitsfile"))
     {
-        if (!OpenFile(conf.Get<string>("fitsfile")))
+        if (!OpenFile(conf.Get<string>("fitsfile"), conf.Get<bool>("force")))
             return -1;
     }
@@ -1400,4 +1400,5 @@
         ("tstart,a",    po_switch(),                "Give the mjdStart from reading the file data")
         ("tstop,b",     po_switch(),                "Give the mjdStop from reading the file data")
+        ("force",       po_switch(),                "Force reading the fits file even if END key is missing")
 #ifdef PLOTTING_PLEASE
         ("graph,g",     po_switch(),                "Plot the columns instead of dumping them")
