]> git.llucax.com Git - software/mutest.git/commitdiff
Fix Python implementation options
authorLeandro Lucarella <llucax@gmail.com>
Thu, 25 Dec 2008 23:26:37 +0000 (21:26 -0200)
committerLeandro Lucarella <llucax@gmail.com>
Thu, 25 Dec 2008 23:37:41 +0000 (21:37 -0200)
Rename -a/--search-all to -s/--search, move --verbose alias from -q to -v
and add --quiet alias for -q.

mutest

diff --git a/mutest b/mutest
index a0e7d82eb66b8728493732d8ac75c1285c8059b8..ce26b475a982d70b5d52c3cbd17aa9778ee7ef34 100755 (executable)
--- 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: