nuttx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #599: sim: Add a CLI option to override vpnkit socket
Date Sat, 21 Mar 2020 12:45:37 GMT
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message