﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
14909	Adding custom command requires code duplication from Command.handle() if one want to use options like verbosity.	Piotr Czachur	nobody	"
{{{
# django/core/management/commands/test.py
    def handle(self, *test_labels, **options):
        # ...
        verbosity = int(options.get('verbosity', 1))
        interactive = options.get('interactive', True)
        failfast = options.get('failfast', False)
        # ...
}}}

People who write custom commands make use of options like verbosity, etc.
This code should be moved to separate function setup_options(), so people who write custom command don't have to ""copy&paste"" that code into their' CustomCommand.handle() implementation.


"	New feature	closed	Core (Management commands)	dev	Normal	fixed			Accepted	0	0	0	0	0	0
