From: Leandro Lucarella Date: Thu, 25 Dec 2008 23:26:37 +0000 (-0200) Subject: Fix Python implementation options X-Git-Tag: 1.0~3 X-Git-Url: https://git.llucax.com/software/mutest.git/commitdiff_plain/78f2a6de06b783f76d3857bb31ba2ed9f1b76ba6?ds=sidebyside Fix Python implementation options Rename -a/--search-all to -s/--search, move --verbose alias from -q to -v and add --quiet alias for -q. --- diff --git a/mutest b/mutest index a0e7d82..ce26b47 100755 --- a/mutest +++ b/mutest @@ -188,11 +188,11 @@ def parse_arguments(args): search_help = ('Search for all test suites in the current directory ' '(*.so) and add them') parser = OptionParser() - parser.add_option('-v', dest='verbose_level', action='count', - default=1, help=verbose_help) - parser.add_option('-q', '--verbose-level', dest='quiet', - action='store_true', default=False, help=quiet_help) - parser.add_option('-a', '--search-all', dest='search_all', + parser.add_option('-v', '--verbose', dest='verbose_level', + action='count', default=1, help=verbose_help) + parser.add_option('-q', '--quiet', dest='quiet', action='store_true', + default=False, help=quiet_help) + parser.add_option('-s', '--search', dest='search', action='store_true', default=False, help=search_help) return parser.parse_args() @@ -207,7 +207,7 @@ def main(args): else: verbose_level = opts.verbose_level - if opts.search_all: + if opts.search: args.extend(glob('*.so')) if not args: