mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -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
|
@ -173,6 +173,10 @@ func (s *Session) Module(name string) (err error, mod Module) {
|
|||
}
|
||||
|
||||
func (s *Session) Close() {
|
||||
if *s.Options.PrintVersion {
|
||||
return
|
||||
}
|
||||
|
||||
if *s.Options.Debug {
|
||||
fmt.Printf("\nStopping modules and cleaning session state ...\n")
|
||||
s.Events.Add("session.closing", nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue