Some links about how to write a man page:
Last, but not least:
# man 7 groff_man
This man page contains all the macros that can be used in a manual page.
Write A Man Page by George Notaras is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Copyright © 2006 - Some Rights Reserved