aitjcize / cppman

C++ 98/11/14 manual pages for Linux/MacOS
GNU General Public License v3.0
1.27k stars 79 forks source link

How to read headers or not-classes via cppman? #114

Open autistic456 opened 4 years ago

autistic456 commented 4 years ago

I cannot read for example headers, like: $ cppman '<iostream>', or man page for operators like $ cppman 'operators precedence'. Can authors please add to their README file also naming? Like what they named each section of man pages or a tutorial hot to look-up and properly name the man page entry? Also, may pages could not be reached: err 404

Gray-Stone commented 1 year ago

I also found similar problems. I can't find a way to access pages like constructor, lambda, etc. cppman seems only catch pages under std::

zigmars commented 9 months ago

For what I needed so far, it turns out You can do it by passing page title as the only unnamed parameter. cppman "C++ Operator Precedence" (or a unique string prefix for that page, e.g. cppman "C++ Op", i just usually reverse-search with C^-r + op)

cppman "Lambda expressions" or cppman "Lambda " (with the last space being necessary)

Though the overview pages"C++ reference" and "C++ language" are still half useless without cross-links to man pages, whose names are listed just as a plain text there.