aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholberton@gmail.com>2016-10-02 12:18:42 -0400
committerTaylor Holberton <taylorcholberton@gmail.com>2016-10-02 12:18:42 -0400
commitbbd6cf0ff9e32fada3903bed0487ed6646e4dd52 (patch)
tree07fc6abc52c51cf8b34acea1ef2e5e9f38eb21cb /utils
parent84abf1e01a1cc104f39abeef82ecd51f92f603b9 (diff)
changed default behavior to print usage only on --help
Diffstat (limited to 'utils')
-rw-r--r--utils/tinypcminfo.c2
1 files changed, 1 insertions, 1 deletions
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;
}