MCPcopy
hub / github.com/esm-dev/esm.sh / parseCommandFlags

Function parseCommandFlags

cli/utils.go:53–58  ·  view source on GitHub ↗

parseCommandFlags parses the command flags

()

Source from the content-addressed store, hash-verified

51
52// parseCommandFlags parses the command flags
53func parseCommandFlags() (args []string, helpFlag bool) {
54 help := flag.Bool("help", false, "Print help message")
55 h := flag.Bool("h", false, "Print help message")
56 flag.CommandLine.Parse(os.Args[2:])
57 return flag.CommandLine.Args(), *help || *h
58}
59
60func lookupClosestFile(name string) (filename string, exists bool, err error) {
61 cwd, err := os.Getwd()

Callers 2

TidyFunction · 0.85
AddFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected