From bbd6cf0ff9e32fada3903bed0487ed6646e4dd52 Mon Sep 17 00:00:00 2001 From: Taylor Holberton Date: Sun, 2 Oct 2016 12:18:42 -0400 Subject: changed default behavior to print usage only on --help --- utils/tinypcminfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/tinypcminfo.c b/utils/tinypcminfo.c index 4eb0afa..5b8db1f 100644 --- a/utils/tinypcminfo.c +++ b/utils/tinypcminfo.c @@ -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; } -- cgit v1.2.3