MCPcopy Index your code
hub / github.com/bitfield/script / Args

Function Args

script.go:45–47  ·  view source on GitHub ↗

Args creates a pipe containing the program's command-line arguments from [os.Args], excluding the program name, one per line.

()

Source from the content-addressed store, hash-verified

43// Args creates a pipe containing the program's command-line arguments from
44// [os.Args], excluding the program name, one per line.
45func Args() *Pipe {
46 return Slice(os.Args[1:])
47}
48
49// Do creates a pipe that makes the HTTP request req and produces the response.
50// See [Pipe.Do] for how the HTTP response status is interpreted.

Callers 2

TestMainFunction · 0.92
ExampleArgsFunction · 0.92

Calls 1

SliceFunction · 0.85

Tested by 2

TestMainFunction · 0.74
ExampleArgsFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…