mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
new: added -eval command
This commit is contained in:
parent
a849692468
commit
59c0e1eb76
3 changed files with 12 additions and 1 deletions
|
@ -8,6 +8,7 @@ type Options struct {
|
|||
Debug *bool
|
||||
Silent *bool
|
||||
NoHistory *bool
|
||||
Commands *string
|
||||
}
|
||||
|
||||
func ParseOptions() (Options, error) {
|
||||
|
@ -17,6 +18,7 @@ func ParseOptions() (Options, error) {
|
|||
Debug: flag.Bool("debug", false, "Print debug messages."),
|
||||
Silent: flag.Bool("silent", false, "Suppress all logs which are not errors."),
|
||||
NoHistory: flag.Bool("no-history", false, "Disable history file."),
|
||||
Commands: flag.String("eval", "", "Run a command, used to set variables via command line."),
|
||||
}
|
||||
|
||||
flag.Parse()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue