Fix generation of .txt documentation on main commands.