MCPcopy Create free account
hub / github.com/cli/cli / noArgsConstraint

Function noArgsConstraint

pkg/cmd/codespace/common.go:182–187  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

180var ErrTooManyArgs = errors.New("the command accepts no arguments")
181
182func noArgsConstraint(cmd *cobra.Command, args []string) error {
183 if len(args) > 0 {
184 return ErrTooManyArgs
185 }
186 return nil
187}
188
189type codespace struct {
190 *api.Codespace

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected