Fixed redundant usage errors
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ var (
|
||||
Long: "Control interface to the Cluster Warewulf Provisioning System.",
|
||||
PersistentPreRunE: rootPersistentPreRunE,
|
||||
SilenceUsage: true,
|
||||
SilenceErrors: true,
|
||||
}
|
||||
verboseArg bool
|
||||
DebugFlag bool
|
||||
|
||||
Reference in New Issue
Block a user