media_client: print usage in case of missing arguments

Now the obvious "media_client somefile.wav" will tell you what to do.
This commit is contained in:
Adrien Destugues
2017-11-20 09:44:50 +01:00
parent 1f384bf443
commit c312da45a8
+2
View File
@@ -38,6 +38,8 @@ int main(int argc, char *argv[])
ret = media_play(argv[2]);
} else if (strcmp(argv[1], "test") == 0)
media_test();
else
print_usage();
return ret;
}