MCPcopy Create free account
hub / github.com/evilsocket/shellz / showHelp

Function showHelp

cmd/shellz/help.go:70–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68}
69
70func showHelp() {
71 log.Info("none of the -run, -test or -list parameters have been specified")
72
73 fmt.Println()
74 fmt.Printf("Usage:\n\n")
75 flag.PrintDefaults()
76 fmt.Println()
77 fmt.Printf("Examples:\n\n")
78
79 for _, e := range examples {
80 fmt.Printf(" %s\n", tui.Dim("# "+e.help))
81 fmt.Printf(" %s\n", tui.Bold(e.cmd))
82 fmt.Println()
83 }
84
85 os.Exit(1)
86}

Callers 1

mainFunction · 0.85

Calls 1

InfoMethod · 0.80

Tested by

no test coverage detected