MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / checkFlagRequired

Function checkFlagRequired

cli/cmd/common/workspace.go:695–700  ·  view source on GitHub ↗

检查参数是否填写

(fflags *pflag.FlagSet, flagName string)

Source from the content-addressed store, hash-verified

693
694// 检查参数是否填写
695func checkFlagRequired(fflags *pflag.FlagSet, flagName string) error {
696 if !fflags.Changed(flagName) {
697 return fmt.Errorf(i18nInstance.Main.Err_flag_value_required, flagName)
698 }
699 return nil
700}

Callers 1

getRemoteAndValidFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected