diff options
author | midipix <writeonce@midipix.org> | 2024-06-15 23:18:06 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-06-22 08:59:37 +0000 |
commit | 173a352159b6da4ebf0fda796f662558b25194ea (patch) | |
tree | cac2327b6d061d745eba126e8f0e1c2febf8faf6 /src | |
parent | f7d2aa1d8d955fc355f7fed818c99fc38d77a04c (diff) | |
download | tpax-173a352159b6da4ebf0fda796f662558b25194ea.tar.bz2 tpax-173a352159b6da4ebf0fda796f662558b25194ea.tar.xz |
argv.h: argv_show_status(): refactor for better readability.
Diffstat (limited to 'src')
-rw-r--r-- | src/internal/argv/argv.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/internal/argv/argv.h b/src/internal/argv/argv.h index 3f835fc..4992521 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,"<program arg> := %s\n",entry->arg); + } + } argv_dprintf(fd,"\n\n"); } |