Clean up the "all" support for -u.

This commit is contained in:
Fred Drake 2002-04-11 20:58:54 +00:00
parent f9ddec41ce
commit 04a8da5cdb
1 changed files with 2 additions and 1 deletions

View File

@ -132,7 +132,8 @@ def main(tests=None, testdir=None, verbose=0, quiet=0, generate=0,
break
if r not in RESOURCE_NAMES:
usage(1, 'Invalid -u/--use option: ' + a)
use_resources.extend(u)
if r not in use_resources:
use_resources.extend(r)
if generate and verbose:
usage(2, "-g and -v don't go together!")