summaryrefslogtreecommitdiffstats
path: root/dwarflint/dwarflint.cc
diff options
context:
space:
mode:
authorPetr Machata <[email protected]>2010-09-24 18:41:40 +0200
committerPetr Machata <[email protected]>2010-09-24 18:41:40 +0200
commite966f19d486f4874faced1baac15307e61010b4b (patch)
tree790f8043ab41742b2e06bf9a98ad9e8430aea08d /dwarflint/dwarflint.cc
parent2e8236968ede6077d4d75782bd02c6c470c3f6b9 (diff)
dwarflint: --list-checks now lists options associated with check passes
Diffstat (limited to 'dwarflint/dwarflint.cc')
-rw-r--r--dwarflint/dwarflint.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/dwarflint/dwarflint.cc b/dwarflint/dwarflint.cc
index 2a56a370..6d01f7e0 100644
--- a/dwarflint/dwarflint.cc
+++ b/dwarflint/dwarflint.cc
@@ -163,6 +163,16 @@ dwarflint::check_registrar::list_checks () const
char const *desc = cd.description ();
if (desc != NULL)
std::cout << desc;
+
+ options const &opts = cd.opts ();
+ if (!opts.empty ())
+ {
+ std::cout << "recognized options:" << std::endl;
+ for (options::const_iterator ot = opts.begin ();
+ ot != opts.end (); ++ot)
+ std::cout << " " << ot->second->format () << std::endl;
+ }
+
std::cout << std::endl;
}
}