MCPcopy Index your code
hub / github.com/netdata/netdata / parseCLI

Function parseCLI

src/go/cmd/scriptsdplugin/main.go:103–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101}
102
103func parseCLI() *cli.Option {
104 opt, err := cli.Parse(os.Args)
105 if err != nil {
106 if cli.IsHelp(err) {
107 os.Exit(0)
108 }
109 os.Exit(1)
110 }
111
112 return opt
113}

Callers 1

mainFunction · 0.70

Calls 1

ParseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…