Procházet zdrojové kódy

add title to `smd` options

cdelorme před 7 roky
rodič
revize
31e7409c9f
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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()