Closed tarunKoyalwar closed 6 months ago
goflags now allows passing custom args if given instead of os.Args[1:]
this was implemented to debug nuclei but vscode debugger can't handle codebase size but this will help in other projects
this is expected to be used in debugging or intergration tests ex:
package main import ( "testing" "github.com/projectdiscovery/goflags" ) func TestNuclei(t *testing.T) { command := `-u https://scanme.sh -stats -pt dns` run(goflags.GetArgsFromString(command)...) }
https://github.com/projectdiscovery/nuclei/pull/5148/commits/fb3365c5974aa097622eeef9f5dc58631c0cb967
Proposed Changes
goflags now allows passing custom args if given instead of os.Args[1:]
this was implemented to debug nuclei but vscode debugger can't handle codebase size but this will help in other projects
this is expected to be used in debugging or intergration tests ex:
https://github.com/projectdiscovery/nuclei/pull/5148/commits/fb3365c5974aa097622eeef9f5dc58631c0cb967