mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
new: new -version command line argument to print version, build information and exit
This commit is contained in:
parent
bf4c841ef9
commit
027f4a3ccc
3 changed files with 16 additions and 2 deletions
|
@ -11,6 +11,7 @@ type Options struct {
|
|||
Silent *bool
|
||||
NoColors *bool
|
||||
NoHistory *bool
|
||||
PrintVersion *bool
|
||||
EnvFile *string
|
||||
Commands *string
|
||||
CpuProfile *string
|
||||
|
@ -24,6 +25,7 @@ func ParseOptions() (Options, error) {
|
|||
AutoStart: flag.String("autostart", "events.stream, net.recon", "Comma separated list of modules to auto start."),
|
||||
Caplet: flag.String("caplet", "", "Read commands from this file and execute them in the interactive session."),
|
||||
Debug: flag.Bool("debug", false, "Print debug messages."),
|
||||
PrintVersion: flag.Bool("version", false, "Print the version and exit."),
|
||||
Silent: flag.Bool("silent", false, "Suppress all logs which are not errors."),
|
||||
NoColors: flag.Bool("no-colors", false, "Disable output color effects."),
|
||||
NoHistory: flag.Bool("no-history", false, "Disable interactive session history file."),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue