From e50a90e9f5bf035880d88f50fafe2cf18bc5ec15 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 15 Jun 2024 23:18:06 +0000 Subject: argv.h: argv_show_status(): refactor for better readability. --- src/internal/argv/argv.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/internal/argv/argv.h b/src/internal/argv/argv.h index 70b915e..c7d440d 100644 --- a/src/internal/argv/argv.h +++ b/src/internal/argv/argv.h @@ -698,7 +698,7 @@ static void argv_show_status( argv_dprintf(fd,"argv[%d]: %s\n",argc,*argv); argv_dprintf(fd,"\n\nparsed entries:\n"); - for (entry=meta->entries; entry->arg || entry->fopt; entry++) + for (entry=meta->entries; entry->arg || entry->fopt; entry++) { if (entry->fopt) { option = option_from_tag(optv,entry->tag); short_name[0] = option->short_name; @@ -709,8 +709,10 @@ static void argv_show_status( else argv_dprintf(fd,"[-%s,--%s]\n", short_name,option->long_name); - } else + } else { argv_dprintf(fd," := %s\n",entry->arg); + } + } argv_dprintf(fd,"\n\n"); } -- cgit v1.2.3