Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Add version command #133

Open
redstone2019 opened this issue Sep 27, 2020 · 1 comment
Open

Add version command #133

redstone2019 opened this issue Sep 27, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@redstone2019
Copy link
Collaborator

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

@redstone2019 redstone2019 added the enhancement New feature or request label Sep 27, 2020
@penguinologist
Copy link
Contributor

penguinologist commented Sep 29, 2020

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
       }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants