Skip to content

Commit

Permalink
system/gcov: add show usage
Browse files Browse the repository at this point in the history
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
  • Loading branch information
Gary-Hobson authored and xiaoxiang781216 committed Sep 27, 2022
1 parent d9ec9ca commit 1b99543
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions system/gcov/gcov.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1b99543

Please sign in to comment.