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',
src/p/y/pygobject-HEAD/glib/option.py pygobject(Download)
import sys
import optparse
from optparse import OptParseError, OptionError, OptionValueError, \
BadOptionError, OptionConflictError
if sys.version_info >= (3, 0):
src/e/t/etm-664/etm/etmParsers.py etm(Download)
import sys, datetime, os, os.path, fnmatch, shutil, copy, re, subprocess import time from optparse import OptionParser, OptParseError, OptionError, OptionConflictError, BadOptionError, OptionValueError from dateutil.parser import parse as duparse from calendar import TextCalendar from calendar import LocaleTextCalendar from etm.etmVersion import version
src/p/y/PyMVPA-HEAD/mvpa/misc/cmdline.py PyMVPA(Download)
import mvpa # TODO? all options (opt*) might migrate to respective module? discuss from optparse import OptionParser, Option, OptionGroup, OptionConflictError # needed for verboseCallback from mvpa.base import verbose, externals
src/c/e/cement-HEAD/cement/core/opt.py cement(Download)
"""Cement methods and classes to handle cli option/arg parsing.""" import sys, os from optparse import OptionParser, IndentedHelpFormatter, OptionConflictError from cement import namespaces from cement.core.log import get_logger
src/g/a/gamera-HEAD/trunk/gamera/gamera/backport/config.py gamera(Download)
## along with this program; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. from optparse import OptionParser, make_option, OptionConflictError import ConfigParser from os.path import isfile, expanduser, split, join
src/g/a/gamera-HEAD/gamera/gamera/backport/config.py gamera(Download)
## along with this program; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. from optparse import OptionParser, make_option, OptionConflictError import ConfigParser from os.path import isfile, expanduser, split, join
src/z/a/zamboni-lib-HEAD/lib/python/nose/plugins/base.py zamboni-lib(Download)
import os import textwrap from optparse import OptionConflictError from warnings import warn from nose.util import tolist class Plugin(object):
1 | 2 | 3 | 4 | 5 | 6 Next