• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(62)  |  Call(6)  |  Derive(0)  |  Import(56)
Raised if conflicting options are added to an OptionParser.

src/m/o/moofs-HEAD/moofs/src/fuseparts/subbedopts.py   moofs(Download)
#    See the file COPYING.
#
 
from optparse import Option, OptionParser, OptParseError, OptionConflictError
from optparse import HelpFormatter, IndentedHelpFormatter, SUPPRESS_HELP
from fuseparts.setcompatwrap import set
 
    def register_sub(self, o):
        """Register argument a suboption for `self`."""
 
        if o.subopt in self.subopt_map:
            raise OptionConflictError(
              "conflicting suboption handlers for `%s'" % o.subopt,
              o)
            if oo:
                if oo.action != "store_hive":
                    raise OptionConflictError(
                      "can't add subopt as option has already a handler that doesn't do `store_hive'",
                      oo)
            else:
                self.add_option(o.baseopt, action='store_hive',

src/a/l/allmydata-tahoe-1.8.0/mac/fuseparts/subbedopts.py   allmydata-tahoe(Download)
# licensed under the same terms as Tahoe-LAFS itself.
#
 
from optparse import Option, OptionParser, OptParseError, OptionConflictError
from optparse import HelpFormatter, IndentedHelpFormatter, SUPPRESS_HELP
from fuseparts.setcompatwrap import set
 
    def register_sub(self, o):
        """Register argument a suboption for `self`."""
 
        if o.subopt in self.subopt_map:
            raise OptionConflictError(
              "conflicting suboption handlers for `%s'" % o.subopt,
              o)
            if oo:
                if oo.action != "store_hive":
                    raise OptionConflictError(
                      "can't add subopt as option has already a handler that doesn't do `store_hive'",
                      oo)
            else:
                self.add_option(o.baseopt, action='store_hive',

src/f/u/fuse-python-0.2/fuseparts/subbedopts.py   fuse-python(Download)
#    See the file COPYING.
#
 
from optparse import Option, OptionParser, OptParseError, OptionConflictError
from optparse import HelpFormatter, IndentedHelpFormatter, SUPPRESS_HELP
from fuseparts.setcompatwrap import set
 
    def register_sub(self, o):
        """Register argument a suboption for `self`."""
 
        if o.subopt in self.subopt_map:
            raise OptionConflictError(
              "conflicting suboption handlers for `%s'" % o.subopt,
              o)
            if oo:
                if oo.action != "store_hive":
                    raise OptionConflictError(
                      "can't add subopt as option has already a handler that doesn't do `store_hive'",
                      oo)
            else:
                self.add_option(o.baseopt, action='store_hive',