Closed gideonite closed 9 years ago
It should run without arguments. It defaults to mapping unused CTRL to ESC. Originally this was all that it did so it didn't need arguments. I wont change the default behaviour now because that would cause problems for many users.
However, you have a point that invalid arguments should at least produce a warning.
If you run xcape with no arguments it creates a process:
If you run it with an argument that does not have a
-
:It'd be great if these threw an error, even if it's clear that options to linux commands always start with
-
.I think that this has something to do with the way arguments are being handled with
getopt
and thatoptind
may hold the answer but I haven't been able to pin down where to put the check forargv[optind] != NULL
. Correct me if I'm on the wrong track here.