Fixed redundant usage errors

This commit is contained in:
Gregory Kurtzer
2021-09-13 22:36:45 -07:00
parent 473ecd7e96
commit 9581281cb4
2 changed files with 2 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ func main() {
err := root.Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "%s: %s\n", os.Args[0], err)
fmt.Fprintf(os.Stderr, "ERROR: %s\n", err)
if wwctl.DebugFlag {
fmt.Printf("\nSTACK TRACE: %+v\n", err)
}

View File

@@ -23,6 +23,7 @@ var (
Long: "Control interface to the Cluster Warewulf Provisioning System.",
PersistentPreRunE: rootPersistentPreRunE,
SilenceUsage: true,
SilenceErrors: true,
}
verboseArg bool
DebugFlag bool