From 878fc3e19d22f76e0dc5c0a74afd9ea54a61d890 Mon Sep 17 00:00:00 2001 From: Gitea Date: Fri, 20 May 2022 19:04:42 +0300 Subject: [PATCH] Copyright on -h --- src/main.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/main.go b/src/main.go index 5aab64d..52627e0 100644 --- a/src/main.go +++ b/src/main.go @@ -71,6 +71,21 @@ func addText(img *image.RGBA, x, y uint, text string, size float64) error { } func main() { + flag.Usage = func() { + fmt.Printf(` -add_note_space + Add bottom space for a note or not + -dst_dir string + Specify path to the output directory (default "output_images") + -fontsize float + Set font size for note (default 150) + -note string + Set a note that will be added to the bottom of each extracted image + -src_dir string + Specify path to the directory where each found PDF file's pages will be converted to images (default ".") + +(c) Kasyanov Nikolay Alexeyevich (Unbewohnte) +`) + } flag.Parse() err := os.MkdirAll(*extractionDirPath, os.ModePerm)