[DEPRECATED] Go implementation of plcbundle

fix cmd usage behavior

+6
+6
cmd/plcbundle/commands/common.go
··· 81 81 // getManager(&ManagerOptions{AutoInit: true}) // Allow creating repo 82 82 // getManager(&ManagerOptions{Dir: "/path", AutoInit: true}) // Explicit dir + create 83 83 func getManager(opts *ManagerOptions) (*bundle.Manager, string, error) { 84 + 85 + // Silence usage for operational errors 86 + if opts.Cmd != nil { 87 + opts.Cmd.SilenceUsage = true 88 + } 89 + 84 90 // Use defaults if nil 85 91 if opts == nil { 86 92 opts = &ManagerOptions{}