MCPcopy Index your code
hub / github.com/docker-exec/dexec / ParseOsArgs

Function ParseOsArgs

cli/cli.go:150–155  ·  view source on GitHub ↗

ParseOsArgs takes a string slice representing the full arguments passed to the program, including the filename and returns a CLI containing the filename and map of option types to their values.

(args []string)

Source from the content-addressed store, hash-verified

148// the program, including the filename and returns a CLI containing the
149// filename and map of option types to their values.
150func ParseOsArgs(args []string) CLI {
151 return CLI{
152 Filename: args[0],
153 Options: ParseArgs(args[1:]),
154 }
155}
156
157// DisplayHelp takes a filename and prints the help information for the program.
158func DisplayHelp(filename string) {

Callers 9

TestFilenameFunction · 0.85
TestTargetDirFunction · 0.85
TestSourcesFunction · 0.85
TestImageFunction · 0.85
TestExtensionFunction · 0.85
TestIncludesFunction · 0.85
TestArgsFunction · 0.85
TestBuildArgsFunction · 0.85
TestOrderingFunction · 0.85

Calls 1

ParseArgsFunction · 0.85

Tested by 9

TestFilenameFunction · 0.68
TestTargetDirFunction · 0.68
TestSourcesFunction · 0.68
TestImageFunction · 0.68
TestExtensionFunction · 0.68
TestIncludesFunction · 0.68
TestArgsFunction · 0.68
TestBuildArgsFunction · 0.68
TestOrderingFunction · 0.68