Commits

Anonymous committed b673ff8

added best management of exclude groups and doc

Comments (0)

Files changed (1)

         return add_argument
 
     def add_mutually_exclusive_group(self, name, required=False):
+        """Add a muttually exclusive group as ``argparse.Argparse`` but
+        identified by a ``name``. If the ``name`` already exists the same
+        group is returned. If ``name`` exists and ``required`` is diferent
+        this method change the *required* value.
+
+        """
         if name not in self._exgroups:
             exgroup = super(Caipyrinha, self).add_mutually_exclusive_group()
             self._exgroups[name] = exgroup