From 22a56266c5891e52f7377a3f94536db8e8addb15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20R=C3=B8dseth?= Date: Sun, 24 Nov 2013 14:41:42 +0100 Subject: [PATCH] Removed the function and data structure for generating man pages --- help.go | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/help.go b/help.go index e91497c..41b58af 100644 --- a/help.go +++ b/help.go @@ -44,32 +44,6 @@ OPTIONS: {{end}} ` -var ManPageTemplate = `.\" -*-Nroff-*- -.\" -.TH "{{.Name}}" 1 "{{.Compiled.Day}} {{.Compiled.Month}} {{.Compiled.Year}}" "" "" -.SH NAME -{{.Name}} \- {{.Usage}} -.SH SYNOPSIS -.B {{.Name}} -.nf -command {{.Name}} [command options] [arguments...] -.fi -.SH COMMANDS -.nf -{{range .Commands}}{{.Name}}{{with .ShortName}}, {{.}}{{end}}{{ "\t" }}{{.Usage}} -{{end}} -.fi -.SH OPTIONS -.nf -{{range .Flags}}{{.}} -{{end}} -.fi -.SH VERSION -.B {{.Version}} -.SH AUTHOR -.B {{.Name}} was written by {{.Author}} <{{.Email}}> -` - var helpCommand = Command{ Name: "help", ShortName: "h", @@ -89,11 +63,6 @@ func ShowAppHelp(c *Context) { printHelp(AppHelpTemplate, c.App) } -// Generates (prints) man page for the App -func GenerateManPage(c *Context) { - printHelp(ManPageTemplate, c.App) -} - // Prints help for the given command func ShowCommandHelp(c *Context, command string) { for _, c := range c.App.Commands {