abort if any command-line arguments

This commit is contained in:
John Gebbie 2022-12-28 10:55:19 +00:00
parent 9f57e0ccc9
commit dbd8a9098a

View file

@ -244,6 +244,9 @@ func main() {
if err != nil {
fatal(err.Error())
}
if len(optset.Args()) > 0 {
fatal("there should be no arguments, commands are read from stdin")
}
}
keyboard, err := uinput.CreateKeyboard("/dev/uinput", []byte("dotool keyboard"))