How to add a man page to your ruby project

If you have ever used the git command-line utility, you will be pleasantly surprised that if you run git clone --help it automatically displays the man page for git clone instead of the usual --help output.This blog post will show you how to add the same functionality to your Ruby command-line utility.Introducing kramdown-manMan pages are written in the roff typesetting markup language, which uses macro tags that look like .PP and \fB. Needless to say writing roff by hand is not fun. Instead, we will use the kramdown-man gem to generate the roff man page from a similar looking pure markdown man page.
How to add a man page to your ruby project #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/how-to-add-a-man-page-to-your-ruby-project

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles