nvidia-clerk icon indicating copy to clipboard operation
nvidia-clerk copied to clipboard

Add version command

Open redstone2019 opened this issue 4 years ago • 1 comments

Something like nvidia-clerk-windows.exe -version then it says NVIDIA Clerk by Ianmarmour v3.7.6 (09/26/2020)

redstone2019 avatar Sep 27 '20 18:09 redstone2019

Add it to https://github.com/ianmarmour/nvidia-clerk/blob/master/cmd/nvidia-clerk/nvidia-clerk.go in the flags under main. Something like this should do it (haven't tested it but the gist is here):

        // Parse Argument Flags
	// . . .
	desktop := flag.Bool("desktop", false, "Enable desktop notifications, disabled by default.")
        version := flag.Bool("version", false, "Display program version")
	flag.Parse()
       //  . . .
        if configErr != nil {
		log.Fatal(configErr)
	}

       if config.version != nil{
                log.Println("NVIDIA Clerk by Ianmarmour " + {version} + " " + {date});
                exit
       }

penguinologist avatar Sep 29 '20 02:09 penguinologist