From 1b99543e8d21a6e5db04ae6ef5d8c602c6811be7 Mon Sep 17 00:00:00 2001 From: yinshengkai Date: Tue, 27 Sep 2022 16:15:51 +0800 Subject: [PATCH] system/gcov: add show usage Signed-off-by: yinshengkai --- system/gcov/gcov.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system/gcov/gcov.c b/system/gcov/gcov.c index 6e8caace5..bf4dbf549 100644 --- a/system/gcov/gcov.c +++ b/system/gcov/gcov.c @@ -57,6 +57,11 @@ int main(int argc, FAR char *argv[]) { int option; + if (argc < 2) + { + show_usage(argv[0]); + } + while ((option = getopt(argc, argv, "drh")) != ERROR) { switch (option)