From 907af0e7e261bd9f14d013b1b1b65cb0cf319e27 Mon Sep 17 00:00:00 2001 From: Dan Wandschneider Date: Wed, 8 Jun 2016 19:51:55 -0400 Subject: Make report's 'sort' option available only via the configuration file, not available on the command line. --- coverage/cmdline.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'coverage/cmdline.py') diff --git a/coverage/cmdline.py b/coverage/cmdline.py index b2803c5..e2b79fe 100644 --- a/coverage/cmdline.py +++ b/coverage/cmdline.py @@ -82,14 +82,6 @@ class Opts(object): '--skip-covered', action='store_true', help="Skip files with 100% coverage.", ) - SORT_CHOICES = ('Name', 'Stmts', 'Miss', 'Cover') - sort = optparse.make_option( - '--sort', action='store', choices=SORT_CHOICES, - help=( - "Sort report by a column. " - "Valid values are: %s." - ) % ", ".join(SORT_CHOICES) - ) omit = optparse.make_option( '', '--omit', action='store', metavar="PAT1,PAT2,...", @@ -343,7 +335,6 @@ CMDS = { Opts.include, Opts.omit, Opts.show_missing, - Opts.sort, Opts.skip_covered, ] + GLOBAL_ARGS, usage="[options] [modules]", @@ -513,8 +504,7 @@ class CoverageScript(object): if options.action == "report": total = self.coverage.report( show_missing=options.show_missing, - skip_covered=options.skip_covered, sort_name=options.sort, - **report_args) + skip_covered=options.skip_covered, **report_args) elif options.action == "annotate": self.coverage.annotate( directory=options.directory, **report_args) -- cgit v1.2.1