Closed krishna116 closed 2 years ago
Hi @krishna116, I'd say it is not a bug, but an expected behavior.
When you provide an empty string ""
, it means that you want to display an empty string. If you don't want to display anything, you should provide a NULL
pointer. It is a pretty standard API design pattern.
Got it, thank you.
If I using this line, when I run "foo.exe --help", the file positional argument will displayed.
file = arg_filen(NULL, NULL, "<file>", 1, 1, ""),
If I using this line, when I run "foo.exe --help", the file positional argument will not displayed.file = arg_filen(NULL, NULL, "<file>", 1, 1, NULL),
I have read the site's tutorial: https://www.argtable.org/tutorial/, it says "...Table entries with NULL glossary strings are not displayed.",
so I don't know if it is a bug?