xiaoxiang781216 commented on a change in pull request #599: sim: Add a CLI
option to override vpnkit socket
URL: https://github.com/apache/incubator-nuttx/pull/599#discussion_r395989688
##########
File path: arch/sim/src/sim/up_head.c
##########
@@ -77,6 +78,8 @@ static char g_logbuffer[4096];
int main(int argc, char **argv, char **envp)
{
+ process_cli_options(argc, argv);
Review comment:
> getopt doesn't work that way. or are you suggesting to stop using getopt?
Why we can't use getopt like this:
```
while ((option = getopt(argc, argv, "f")) != ERROR)
{
if (option == 'f')
{
...
}
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services