quick update with global version access (#24)

* update for globally accesible version number

* update

* update

* add flag

* add flag

---------

Co-authored-by: Matt Spurrier <matthew@senseict.com.au>
Co-authored-by: HikariKnight <2557889+HikariKnight@users.noreply.github.com>
This commit is contained in:
Matt Spurrier 2024-03-30 22:00:40 +08:00 committed by GitHub
parent 55bfb36522
commit 1f059e0a96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 8 deletions

View file

@ -56,7 +56,7 @@ func NewParams() *Params {
// Add version flag
version := parser.Flag("v", "version", &argparse.Options{
Required: false,
Help: "Display version",
Help: "Display the version",
})
// Parse arguments
@ -78,9 +78,9 @@ func NewParams() *Params {
}
// Add all parsed arguments to a struct for portability since we will use them all over the program
pArg.addFlag("gui", *gui)
pArg.addFlag("version", *version)
/*pArg.addFlag("gui", *gui)
pArg.addFlag("gpu", *gpu)
/*pArg.addFlag("gpu", *gpu)
pArg.addFlag("usb", *usb)
pArg.addFlag("nic", *nic)
pArg.addFlag("sata", *sata)