mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
new: new -script allows to run JS code to instrument session
This commit is contained in:
parent
d5e5abcb9b
commit
40727063ec
13 changed files with 610 additions and 312 deletions
|
@ -17,6 +17,7 @@ type Options struct {
|
|||
CpuProfile *string
|
||||
MemProfile *string
|
||||
CapletsPath *string
|
||||
Script *string
|
||||
}
|
||||
|
||||
func ParseOptions() (Options, error) {
|
||||
|
@ -35,6 +36,7 @@ func ParseOptions() (Options, error) {
|
|||
CpuProfile: flag.String("cpu-profile", "", "Write cpu profile `file`."),
|
||||
MemProfile: flag.String("mem-profile", "", "Write memory profile to `file`."),
|
||||
CapletsPath: flag.String("caplets-path", "", "Specify an alternative base path for caplets."),
|
||||
Script: flag.String("script", "", "Load a session script."),
|
||||
}
|
||||
|
||||
flag.Parse()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue