Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/cloudfoundry/cli
/ preventExtraArgs
Function
preventExtraArgs
util/command_parser/prevent_extra_args_v7.go:9–16 ·
view source on GitHub ↗
(args []string)
Source
from the content-addressed store, hash-verified
7
)
8
9
func
preventExtraArgs(args []string) error {
10
if
len(args) > 0 {
11
return
translatableerror.TooManyArgumentsError{
12
ExtraArgument: strings.Join(args,
" "
),
13
}
14
}
15
return
nil
16
}
Callers
1
executionWrapper
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected