<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -34,26 +34,27 @@ int main(int argc, char **argv)
     QCoreApplication::setOrganizationDomain(QLatin1String(&quot;arora-browser.org&quot;));
     QCoreApplication::setApplicationName(QLatin1String(&quot;Arora&quot;));
 
-    NetworkDiskCache diskCache;
-    QString location = QDesktopServices::storageLocation(QDesktopServices::CacheLocation)
-            + QLatin1String(&quot;browser/&quot;);
-    diskCache.setCacheDirectory(location);
-
     QStringList args = application.arguments();
     args.takeFirst();
     if (args.isEmpty()) {
         QTextStream stream(stdout);
-        stream &lt;&lt; &quot;cacheinfo [-o cachefile] [file | url]&quot; &lt;&lt; endl;
+        stream &lt;&lt; &quot;arora-cacheinfo is a tool for viewing and extracting information out of Arora cache files.&quot; &lt;&lt; endl;
+        stream &lt;&lt; &quot;arora-cacheinfo [-o cachefile] [file | url]&quot; &lt;&lt; endl;
         return 0;
     }
 
+    NetworkDiskCache diskCache;
+    QString location = QDesktopServices::storageLocation(QDesktopServices::CacheLocation)
+            + QLatin1String(&quot;browser/&quot;);
+    diskCache.setCacheDirectory(location);
+
     QNetworkCacheMetaData metaData;
     QString last = args.takeLast();
     if (QFile::exists(last)) {
-        qDebug() &lt;&lt; &quot;Reading in from a file and not a url.&quot;;
+        qDebug() &lt;&lt; &quot;Reading in from a file and not a URL.&quot;;
         metaData = diskCache._fileMetaData(last);
     } else {
-        qDebug() &lt;&lt; &quot;Reading in from a url and not a file.&quot;;
+        qDebug() &lt;&lt; &quot;Reading in from a URL and not a file.&quot;;
         metaData = diskCache.metaData(last);
     }
 
@@ -63,7 +64,7 @@ int main(int argc, char **argv)
         QUrl url = metaData.url();
         QIODevice *device = diskCache.data(url);
         if (!device) {
-            qDebug() &lt;&lt; &quot;Error: disk cache data is 0!&quot;;
+            qDebug() &lt;&lt; &quot;Error: data for URL is 0!&quot;;
             return 1;
         }
         QString fileName;
@@ -73,7 +74,7 @@ int main(int argc, char **argv)
             QFileInfo info(url.path());
             fileName = info.fileName();
             if (fileName.isEmpty()) {
-                qDebug() &lt;&lt; &quot;URL base name is empty, please specify an output file.&quot;;
+                qDebug() &lt;&lt; &quot;URL file name is empty, please specify an output file, I wont guess.&quot;;
                 return 1;
             }
             if (QFile::exists(fileName)) {
@@ -84,14 +85,14 @@ int main(int argc, char **argv)
         qDebug() &lt;&lt; &quot;Saved cache file to:&quot; &lt;&lt; fileName;
         QFile file(fileName);
         if (!file.open(QFile::ReadWrite))
-            qDebug() &lt;&lt; &quot;Unable to open the file.&quot;;
+            qDebug() &lt;&lt; &quot;Unable to open the output file for writing.&quot;;
         else
             file.write(device-&gt;readAll());
         delete device;
     }
 
     QTextStream stream(stdout);
-    stream &lt;&lt; &quot;Url: &quot; &lt;&lt; metaData.url().toString() &lt;&lt; endl;
+    stream &lt;&lt; &quot;URL: &quot; &lt;&lt; metaData.url().toString() &lt;&lt; endl;
     stream &lt;&lt; &quot;Expiration Date: &quot; &lt;&lt; metaData.expirationDate().toString() &lt;&lt; endl;
     stream &lt;&lt; &quot;Last Modified Date: &quot; &lt;&lt; metaData.lastModified().toString() &lt;&lt; endl;
     stream &lt;&lt; &quot;Save to disk: &quot; &lt;&lt; metaData.saveToDisk() &lt;&lt; endl;
@@ -103,7 +104,7 @@ int main(int argc, char **argv)
         stream &lt;&lt; &quot;Data Size: &quot; &lt;&lt; device-&gt;size() &lt;&lt; endl;
         stream &lt;&lt; &quot;First line: &quot; &lt;&lt; device-&gt;readLine(100);
     } else {
-        stream &lt;&lt; &quot;No data? corrupt or error&quot; &lt;&lt; endl;
+        stream &lt;&lt; &quot;No data? Either the file is corrupt or there is an error.&quot; &lt;&lt; endl;
     }
 
     delete device;</diff>
      <filename>tools/cacheinfo/main.cpp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0e32c7270b4137c9a31d64c4cf7fa53117a0c13f</id>
    </parent>
  </parents>
  <author>
    <name>Benjamin C Meyer</name>
    <email>ben@meyerhome.net</email>
  </author>
  <url>http://github.com/ariya/arora/commit/db6e5163ba697ff56683a07e79fd9f7d6fe5fd60</url>
  <id>db6e5163ba697ff56683a07e79fd9f7d6fe5fd60</id>
  <committed-date>2008-08-01T12:11:44-07:00</committed-date>
  <authored-date>2008-08-01T10:22:07-07:00</authored-date>
  <message>Minor cleanup of the code and improve the strings in the cache info tool</message>
  <tree>15f8133fccf7b9784d0e54d0de6d9a9966eb3180</tree>
  <committer>
    <name>Benjamin C Meyer</name>
    <email>ben@meyerhome.net</email>
  </committer>
</commit>
