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:
parent
55bfb36522
commit
1f059e0a96
3 changed files with 12 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue