|
|
@ -61,8 +61,13 @@ article img {
|
|
61
|
61
|
func init() {
|
|
62
|
62
|
flag.BoolVar(&flags.writeBack, "write-back", false, "Rewrite the YAML file with the generated ids")
|
|
63
|
63
|
flag.BoolVar(&flags.reverse, "reverse", false, "Reverse the order of the articles in the file")
|
|
64
|
|
flag.StringVar(&flags.css, "css", defaultStyle, "Custom styles to use")
|
|
65
|
|
flag.StringVar(&flags.title, "title", "A blog", "Custom title to use")
|
|
|
64
|
flag.StringVar(&flags.css, "css", defaultStyle, "Custom `css` styles to use")
|
|
|
65
|
flag.StringVar(&flags.title, "title", "A blog", "Custom `title` to use")
|
|
|
66
|
|
|
|
67
|
flag.Usage = func() {
|
|
|
68
|
fmt.Fprintf(os.Stderr, "Usage: %s [flags] [<blog.yaml> [<blog.html>]]\n\n", os.Args[0])
|
|
|
69
|
flag.PrintDefaults()
|
|
|
70
|
}
|
|
66
|
71
|
}
|
|
67
|
72
|
|
|
68
|
73
|
func main() {
|