swaybg: check for exact number of arguments

This commit is contained in:
Christoph Gysin 2015-11-25 16:53:18 +02:00
parent 78c2e29328
commit 504ac84cbc

View File

@ -28,7 +28,7 @@ int main(int argc, const char **argv) {
surfaces = create_list();
registry = registry_poll();
if (argc < 4) {
if (argc != 4) {
sway_abort("Do not run this program manually. See man 5 sway and look for output options.");
}