diff options
| author | Petr Machata <[email protected]> | 2010-09-24 18:41:40 +0200 |
|---|---|---|
| committer | Petr Machata <[email protected]> | 2010-09-24 18:41:40 +0200 |
| commit | e966f19d486f4874faced1baac15307e61010b4b (patch) | |
| tree | 790f8043ab41742b2e06bf9a98ad9e8430aea08d /dwarflint/dwarflint.cc | |
| parent | 2e8236968ede6077d4d75782bd02c6c470c3f6b9 (diff) | |
dwarflint: --list-checks now lists options associated with check passes
Diffstat (limited to 'dwarflint/dwarflint.cc')
| -rw-r--r-- | dwarflint/dwarflint.cc | 10 |
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; } } |
