Moved logs to the right place.

This commit is contained in:
Foil-hat-guy 2025-04-21 22:09:10 +03:00
parent 65a464cc3d
commit 604884f69b
No known key found for this signature in database
GPG key ID: 221CC305A7B23591

View file

@ -38,10 +38,9 @@ func init() {
os.Exit(1)
}
fmt.Println(flagIsSet(arg, "h"))
fmt.Println(arg == "--help")
for _, arg := range os.Args {
fmt.Println(flagIsSet(arg, "h"))
fmt.Println(arg == "--help")
if flagIsSet(arg, "h") || arg == "--help" {
fmt.Println(string(help))
os.Exit(0)