Răsfoiți Sursa

add title to `smd` options

cdelorme 7 ani în urmă
părinte
comite
31e7409c9f
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      cmd/smd/main.go

+ 2 - 1
cmd/smd/main.go

@@ -28,10 +28,11 @@ func main() {
 	g.Target(smd)
 	g.Description("command line tool for generating static html from markdown")
 	g.Add("web", "parse into individual files matching the original file name", "STATIC_WEB", "--web", "-w")
-	g.Add("template", "path to user-defined template file", "STATIC_TEMPLATE", "--template", "-t:")
+	g.Add("title", "the title to give to the processed files", "STATIC_TITLE", "--title", "-t:")
 	g.Add("input", "path to the markdown files", "STATIC_INPUT", "--input", "-i:")
 	g.Add("output", "path to place generated content", "STATIC_OUTPUT", "--output", "-o:")
 	g.Add("version", "optional user-defined version", "STATIC_VERSION", "--version", "-v:")
+	g.Add("template", "path to user-defined template file", "STATIC_TEMPLATE", "--template")
 	g.Example("-t template.tmpl -i . -b")
 	g.Example("-t template.tmpl -i src/ -o out/ -r")
 	g.Load()