INNER CODE UNIT · Go
main
NVIDIA/gpu-operator · cmd/gpuop-cfg/main.go:35
func main() {
config := config{}
// Create the top-level CLI
c := cli.Command{}
c.Name = "gpuop-cfg"
c.Usage = "Tools for managing and verifying configuration files for NVIDIA GPU Operator"
c.Version = "0.1.0"
// Setup the flags for this command
c.Flags = []cli.Flag{
&cli.BoolFlag{
Name: "debug",
Aliases: []string{"d"},
Usage: "Enable debug-level logging",
Destination: &config.Debug,
Sources: cli.EnvVars("DEBUG"),
},