Files
gspt/config/flags.go
2023-04-17 23:17:51 +05:30

16 lines
389 B
Go

package config
import (
"flag"
)
func parseFlags() {
flag.StringVar(&ConfigPath, "c", ConfigPath,
"Specify The Directory to check for config.yml file.")
flag.BoolVar(&Config.HideImage, "hide-image", Config.HideImage,
"Do not display the cover art image.")
flag.BoolVar(&Config.RoundedCorners, "rounded-corners", Config.RoundedCorners,
"Enable Rounded Corners")
flag.Parse()
}