Did I find the right examples for you? yes no

All Samples(89)  |  Call(89)  |  Derive(0)  |  Import(0)
Register commandline options.

Implement this method for normal options behavior with protection from
OptionConflictErrors. If you override this method and want the default
--with-$name option to be registered, be sure to call super().

src/n/o/nose-regression-1.0/nose_regression.py   nose-regression(Download)
                parser.add_option(*com, action=action, dest=dest, help=help, 
                                metavar=metavar, default=settings.__file__)
        Plugin.options(self, parser, env=env)
 
    def configure(self, options, conf):

src/o/p/openstack.nose_plugin-0.11/openstack/nose_plugin.py   openstack.nose_plugin(Download)
    def options(self, parser, env):
        plugins.Plugin.options(self, parser, env)
        parser.add_option("--openstack-red",
                          default=env.get("NOSE_OPENSTACK_RED", 1.0),
                          dest="openstack_red",

src/o/p/openstack-nose-HEAD/openstack/nose_plugin.py   openstack-nose(Download)
    def options(self, parser, env):
        plugins.Plugin.options(self, parser, env)
        parser.add_option("--openstack-red",
                          default=env.get("NOSE_OPENSTACK_RED", 1.0),
                          dest="openstack_red",

src/s/p/spec-0.11.1/spec/plugin.py   spec(Download)
    def options(self, parser, env=os.environ):
        Plugin.options(self, parser, env)
        parser.add_option('--no-spec-color', action='store_true',
                          dest='no_spec_color',
                          default=env.get('NOSE_NO_SPEC_COLOR'),

src/p/i/pinocchio-0.4.1/pinocchio/spec.py   pinocchio(Download)
    def options(self, parser, env=os.environ):
        Plugin.options(self, parser, env)
        parser.add_option('--spec-color', action='store_true',
                          dest='spec_color',
                          default=env.get('NOSE_SPEC_COLOR'),

src/i/n/infi.memuse-0.0.8/src/infi/memuse/nose/__init__.py   infi.memuse(Download)
    def options(self, parser, env):
        nose.plugins.Plugin.options(self, parser, env)
        parser.add_option('--memuse-leftover', action='store', dest='memuseLeftover', 
                          default=DEFAULT_ALLOWED_LEFTOVER,
                          help=('Size in bytes of allowed memory footprint "leftover" after the test ends (default=%d)'

src/p/i/pinocchio-HEAD/pinocchio/spec.py   pinocchio(Download)
    def options(self, parser, env=os.environ):
        Plugin.options(self, parser, env)
        parser.add_option('--spec-color', action='store_true',
                          dest='spec_color',
                          default=env.get('NOSE_SPEC_COLOR'),

src/r/u/rudolf2-0.3/rudolf.py   rudolf2(Download)
    def options(self, parser, env=os.environ):
        nose.plugins.Plugin.options(self, parser, env)
        parser.add_option("--no-color", action="store_false",
                          dest="enable_plugin_color",
                          help="Don't output in color")

src/r/u/rudolf-0.3/rudolf.py   rudolf(Download)
    def options(self, parser, env=os.environ):
        nose.plugins.Plugin.options(self, parser, env)
        parser.add_option("--no-color", action="store_false",
                          dest="enable_plugin_color",
                          help="Don't output in color")

src/n/o/nose-json-0.2.4/nose_json/plugin.py   nose-json(Download)
    def options(self, parser, env):
        Plugin.options(self, parser, env)
        parser.add_option(
            '--json-file', action='store',
            dest='json_file', metavar="FILE",

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8  Next