[DEPRECATED] Go implementation of plcbundle

fix cmd usage behavior

+6
+6
cmd/plcbundle/commands/common.go
··· 81 // getManager(&ManagerOptions{AutoInit: true}) // Allow creating repo 82 // getManager(&ManagerOptions{Dir: "/path", AutoInit: true}) // Explicit dir + create 83 func getManager(opts *ManagerOptions) (*bundle.Manager, string, error) { 84 // Use defaults if nil 85 if opts == nil { 86 opts = &ManagerOptions{}
··· 81 // getManager(&ManagerOptions{AutoInit: true}) // Allow creating repo 82 // getManager(&ManagerOptions{Dir: "/path", AutoInit: true}) // Explicit dir + create 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 + 90 // Use defaults if nil 91 if opts == nil { 92 opts = &ManagerOptions{}