Add cancel option to terminate queries

This commit is contained in:
Julien Riou 2018-06-30 11:11:24 +02:00
parent 750db87046
commit dcb07c225e
No known key found for this signature in database
GPG key ID: BA3E15176E45E85D
5 changed files with 22 additions and 1 deletions

View file

@ -47,6 +47,7 @@ func main() {
flag.StringVar(&config.IncludeUsersRegex, "include-users-regex", "", "Terminate users matching this regexp")
flag.Var(&config.ExcludeUsers, "exclude-user", "Ignore this user (can be called multiple times)")
flag.StringVar(&config.ExcludeUsersRegex, "exclude-users-regex", "", "Ignore users matching this regexp")
flag.BoolVar(&config.Cancel, "cancel", false, "Cancel sessions instead of terminate")
flag.Parse()
log.SetLevel(log.WarnLevel)