You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/09/27 11:39:38 UTC
[incubator-nuttx-apps] branch master updated: system/gcov: add show usage
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 1b99543e8 system/gcov: add show usage
1b99543e8 is described below
commit 1b99543e8d21a6e5db04ae6ef5d8c602c6811be7
Author: yinshengkai <yi...@xiaomi.com>
AuthorDate: Tue Sep 27 16:15:51 2022 +0800
system/gcov: add show usage
Signed-off-by: yinshengkai <yi...@xiaomi.com>
---
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)