[GRASS-SVN] r53469 - grass/trunk/gui/wxpython/modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 18 09:09:06 PDT 2012


Author: martinl
Date: 2012-10-18 09:09:06 -0700 (Thu, 18 Oct 2012)
New Revision: 53469

Modified:
   grass/trunk/gui/wxpython/modules/extensions.py
Log:
wxGUI/extension: allow verbose output


Modified: grass/trunk/gui/wxpython/modules/extensions.py
===================================================================
--- grass/trunk/gui/wxpython/modules/extensions.py	2012-10-18 15:41:03 UTC (rev 53468)
+++ grass/trunk/gui/wxpython/modules/extensions.py	2012-10-18 16:09:06 UTC (rev 53469)
@@ -68,7 +68,7 @@
             task = gtask.parse_interface('g.extension.py')
         else:
             task = gtask.parse_interface('g.extension')
-        ignoreFlags = ['l', 'c', 'g', 'a', 'f', 't', 'quiet', 'verbose']
+        ignoreFlags = ['l', 'c', 'g', 'a', 'f', 't', 'quiet']
         if sys.platform == 'win32':
             ignoreFlags.append('d')
             ignoreFlags.append('i')
@@ -174,7 +174,10 @@
         flags = list()
         for key in self.options.keys():
             if self.options[key].IsChecked():
-                flags.append('-%s' % key)
+                if len(key) == 1:
+                    flags.append('-%s' % key)
+                else:
+                    flags.append('--%s' % key)
         
         return ['g.extension'] + flags + ['extension=' + name,
                                           'svnurl=' + self.repo.GetValue().strip()]



More information about the grass-commit mailing list