CPPMAN(1)

πŸ’– CPPMAN(1) β€” the cppman glow-up πŸ’–

okay bestie, welcome to the cppman manual page πŸŽ€ part of the User Manuals collection, and honestly? she's iconic.


✨ NAME ✨

cppman β€” your C++ manual page viewer and fetcher πŸ¦‹


✨ SYNOPSIS ✨

cppman [ OPTIONS...  ] PAGE...

✨ DESCRIPTION ✨

So here's the vibe: cppman generates C++ manual pages from cplusplus.com and gives you a man-like interface to view them. That's it, that's the whole thing. πŸ’…

By default, cppman fetches man pages on-the-fly β€” like, live, in the moment, main character energy. But if you run the command cppman -c, all available manpages get cached, which makes offline browsing possible. 🫢 This is also required if you want to use the system man command. No cache, no man, no cap.

🌸 Browsing man pages 🌸

cppman uses Vi Improved as a pager. (yes, vim. we love her.)

Press q to leave the pager. Press K on an entry like vector::insert(3) and it links you straight to the manual page of vector::insert β€” like a hyperlink, fr fr. πŸ”₯

πŸ¦‹ man compatibility πŸ¦‹

cppman automatically adds $XDG_CACHE_HOME/cppman/man to ~/.manpath, so the cached man pages can also be viewed with the man command. πŸ’–

Heads up though: to view uncached man pages, you still need to run cppman. The man command can't do it for you, sorry babe. 😭

✨ OPTIONS ✨

  • -s SOURCE, --source=SOURCE β€” Select source, either 'cppreference.com' or 'cplusplus.com'. Default is 'cppreference.com'. πŸ‘‘
  • -c, --cache-all β€” cache all available man pages from cplusplus.com to enable offline browsing πŸ’Ύβœ¨
  • -C, --clear-cache β€” clear all cached files 🧹 (clean girl era)
  • -f KEYWORD, --find-page=KEYWORD β€” find man page πŸ”
  • -o, --force-update β€” force cppman to update existing cache when --cache-all is used, or when browsing man pages that were already cached πŸ”„
  • -m MANDB, --use-mandb=MANDB β€” Accepts 'true' or 'false'. If true, cppman adds the manpage path to mandb so that you can view C++ manpages with the man command. The default value is 'false'. πŸ—‚οΈ
  • -p PAGER, --pager=PAGER β€” Select pager to use, accepts 'vim', 'nvim' or 'less'. The default value is 'vim'. If 'nvim' is selected but not available, 'vim' is used as a fallback and vice versa. If either is selected, but neither is available, 'less' is used as a fallback. πŸŽ€
  • -r, --rebuild-index β€” rebuild index database from cplusplus.com πŸ› οΈ
  • -v, --version β€” show version information 🌈
  • -h, --help β€” show this help message and exit πŸ™ˆ

✨ NOTE ✨

All contents should be cached by the user β€” cppman does not contain any pre‐cached contents. You gotta put in the work, bestie. πŸ’ͺ

Do NOT distribute the cached man pages without the permission of cplusplus.com. Like, seriously. That's a hard no. 🚫

✨ BUGS ✨

Although I spend a lot of time checking the format, there are still pages that won't display correctly. 😭 she's trying her best, okay?

Feel free to report bugs at:

Please include the page name in the bug report. πŸ“ (this part is literally so important, don't skip it)


✨ AUTHOR ✨

Wei‐Ning Huang (AZ) <aitjcize@gmail.com> πŸ’œ


and that's the whole page, periodt. πŸŽ€

cute little sign-off time: this one's from the Linux manual, dated MAY 2010, and it's page CPPMAN(1). Yes bestie, 2010 β€” she's vintage, she's timeless, she ate. πŸ’…βœ¨πŸ¦‹