abort if any command-line arguments
This commit is contained in:
parent
9f57e0ccc9
commit
dbd8a9098a
1 changed files with 3 additions and 0 deletions
|
@ -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"))
|
||||
|
|
Loading…
Reference in a new issue