From 272f9df9af04100db83b491699b4f84f45615f73 Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Tue, 24 Jul 2012 10:54:46 +0200 Subject: insanity-run: Improve -t help output by only printing test name and description --- bin/insanity-run | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/bin/insanity-run b/bin/insanity-run index c6b5436..e3bd4fd 100755 --- a/bin/insanity-run +++ b/bin/insanity-run @@ -207,23 +207,7 @@ def test_help(): all_tests = list(insanity.utils.list_available_tests()) all_tests.extend(insanity.utils.list_available_scenarios()) for test in sorted(all_tests): - all_args = test.getFullArgumentList() - if not all_args: - arg_desc = "no arguments" - else: - arg_desc = ", ".join(sorted(all_args.keys())) - print " %s (%s)" % (test.__test_name__, arg_desc,) - - # This prints the full info, but the output is a bit messy then: - ## if all_args: - ## for arg_name, arg_info in sorted(all_args.iteritems()): - ## arg_doc, arg_default = arg_info[:2] - ## if arg_default is not None: - ## print " %s: %s (default: %r)" % (arg_name, arg_doc, arg_default,) - ## else: - ## print " %s: %s" % (arg_name, arg_doc,) - ## else: - ## print " (no arguments)" + print " %s (%s)" % (test.__test_name__, test.__test_description__,) def args_help(): -- cgit v1.2.3