1
0

Fix typo (Flag was with a Cmd postfix)

This commit is contained in:
dump_stack() 2018-10-27 15:09:28 +00:00
parent 7a68de16ba
commit 7040fb7a0b

View File

@ -460,8 +460,8 @@ func main() {
kcfg := kcfgFlag.Envar("OUT_OF_TREE_KCFG").Required().ExistingFile() kcfg := kcfgFlag.Envar("OUT_OF_TREE_KCFG").Required().ExistingFile()
pewCommand := app.Command("pew", "Build, run and test module/exploit") pewCommand := app.Command("pew", "Build, run and test module/exploit")
pewKernelCmd := pewCommand.Flag("kernel", "Override kernel regex") pewKernelFlag := pewCommand.Flag("kernel", "Override kernel regex")
pewKernel := pewKernelCmd.String() pewKernel := pewKernelFlag.String()
var err error var err error
switch kingpin.MustParse(app.Parse(os.Args[1:])) { switch kingpin.MustParse(app.Parse(os.Args[1:])) {