This commit is contained in:
2025-06-02 12:58:38 -07:00
parent d0f7fdc76e
commit a34a891738
4 changed files with 31 additions and 27 deletions

15
main.go
View File

@ -3,7 +3,6 @@ package main
import (
"crypto/md5"
"encoding/hex"
"flag"
"fmt"
"github.com/BurntSushi/toml"
"io"
@ -64,21 +63,7 @@ func setupConfig() {
}
}
func printHelp() {
fmt.Println("Usage:")
fmt.Println(" " + os.Args[0] + "[-hu]")
fmt.Println(" " + os.Args[0] + "-h -- prints this help message")
}
func main() {
helpFlag := flag.Bool("help", false, "Show this printHelp")
flag.Parse()
if *helpFlag {
printHelp()
os.Exit(0)
}
setupConfig()
count, err := downloadUpdate()