Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 2530)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 2531)
@@ -42,4 +42,7 @@
    * mreport/MReportFileRead.cc:
      - fixed handling of MTimes
+
+   * mhist/MH.cc:
+     - added some const qualifiers in CutEdges
 
 
Index: /trunk/MagicSoft/Mars/mars.cc
===================================================================
--- /trunk/MagicSoft/Mars/mars.cc	(revision 2530)
+++ /trunk/MagicSoft/Mars/mars.cc	(revision 2531)
@@ -7,4 +7,5 @@
 
 #include "MMars.h"
+#include "MArgs.h"
 #include "MArray.h"
 #include "MParContainer.h"
@@ -67,9 +68,8 @@
     gLog << all << endl;
     gLog << "Sorry the usage is:" << endl;
-    gLog << "   mars [-v#]" << endl << endl;
-    gLog << "     -v0: verbosity level: as less as possible" << endl;
-    gLog << "     -v1: errors only"                          << endl;
-    gLog << "     -v2: errors and warnings <default>"        << endl;
-    gLog << "     -v3: errors, warnings and infos"           << endl;
+    gLog << "   mars [-h] [-?] [-a0] [-vn]" << endl << endl;
+    gLog << "     -a0: Do not use Ansii codes." << endl;
+    gLog << "     -vn: Verbosity level n [default=2]" << endl;
+    gLog << "     -?/-h: This help" << endl << endl;
 }
 
@@ -79,7 +79,9 @@
 
     //
-    // check for the right usage of the program
+    // Evaluate arguments
     //
-    if (argc<1 || argc>2)
+    MArgs arg(argc, argv);
+
+    if (arg.HasOption("-?") || arg.HasOption("-h"))
     {
         Usage();
@@ -87,33 +89,11 @@
     }
 
-    if (argc==2)
-    {
-        if (argv[1][0]!='-' || argv[1][1]!='v')
-        {
-            Usage();
-            return -1;
-        }
+    //
+    // Set verbosity to highest level.
+    //
+    gLog.SetDebugLevel(arg.HasOption("-v") ? arg.GetIntAndRemove("-v") : 2);
 
-        switch (argv[1][2])
-        {
-        case '0':
-            gLog.SetDebugLevel(0);
-            break;
-        case '1':
-            gLog.SetDebugLevel(1);
-            break;
-        case '2':
-            gLog.SetDebugLevel(2);
-            break;
-        case '3':
-            gLog.SetDebugLevel(3);
-            break;
-        default:
-            Usage();
-            return -1;
-        }
-    }
-    else
-        gLog.SetDebugLevel(2);
+    if (arg.HasOption("-a") && arg.GetIntAndRemove("-a")==0)
+        gLog.SetNoColors();
 
 #ifdef HAVE_XPM
Index: /trunk/MagicSoft/Mars/merpp.cc
===================================================================
--- /trunk/MagicSoft/Mars/merpp.cc	(revision 2530)
+++ /trunk/MagicSoft/Mars/merpp.cc	(revision 2531)
@@ -64,5 +64,5 @@
 }
 
-int main(const int argc, const char **argv)
+int main(const int argc, char **argv)
 {
     StartUpMessage();
@@ -79,13 +79,10 @@
     }
 
-    //
-    // Set verbosity to highest level.
-    //
-    gLog.SetDebugLevel(arg.HasOption("-v") ? arg.GetIntAndRemove("-v") : 2);
-
     if (arg.HasOption("-a") && arg.GetIntAndRemove("-a")==0)
         gLog.SetNoColors();
 
     const int kComprlvl = arg.HasOption("-c") ? arg.GetIntAndRemove("-c") : 1;
+
+    gLog.SetDebugLevel(arg.HasOption("-v") ? arg.GetIntAndRemove("-v") : 2);
 
     //
Index: /trunk/MagicSoft/Mars/mona.cc
===================================================================
--- /trunk/MagicSoft/Mars/mona.cc	(revision 2530)
+++ /trunk/MagicSoft/Mars/mona.cc	(revision 2531)
@@ -355,5 +355,5 @@
     // Evaluate arguments
     //
-    MArgs arg(argc, (const char**)argv);
+    MArgs arg(argc, argv);
 
     if (arg.HasOption("-?") || arg.HasOption("-h"))
Index: /trunk/MagicSoft/Mars/readraw.cc
===================================================================
--- /trunk/MagicSoft/Mars/readraw.cc	(revision 2530)
+++ /trunk/MagicSoft/Mars/readraw.cc	(revision 2531)
@@ -69,5 +69,5 @@
 }
 
-int main(int argc, const char **argv)
+int main(int argc, char **argv)
 {
     StartUpMessage();
Index: /trunk/MagicSoft/Mars/star.cc
===================================================================
--- /trunk/MagicSoft/Mars/star.cc	(revision 2530)
+++ /trunk/MagicSoft/Mars/star.cc	(revision 2531)
@@ -65,5 +65,5 @@
 }
 
-int main(const int argc, const char **argv)
+int main(const int argc, char **argv)
 {
     StartUpMessage();
