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-02 14:57:00 +01:00
parent 1f384bf443
commit c312da45a8

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;
}