mirror of
https://github.com/openharmony/third_party_tinyalsa.git
synced 2026-07-19 23:33:30 -04:00
changed default behavior to print usage only on --help
This commit is contained in:
+1
-1
@@ -103,7 +103,7 @@ int main(int argc, char **argv)
|
||||
unsigned int card = 0;
|
||||
int i;
|
||||
|
||||
if (argc < 3) {
|
||||
if ((argc == 2) && (strcmp(argv[1], "--help") == 0)) {
|
||||
fprintf(stderr, "Usage: %s -D card -d device\n", argv[0]);
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user