From: SourceForge.net <no...@so...> - 2005-04-04 15:30:01
|
Feature Requests item #1175561, was opened at 2005-04-02 23:34 Message generated for change (Comment added) made by seryakov You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=719009&aid=1175561&group_id=130646 Category: C-API Group: None >Status: Closed Resolution: None Priority: 5 Submitted By: Vlad Seryakov (seryakov) Assigned to: Vlad Seryakov (seryakov) Summary: nsmain without getopt Initial Comment: attached is nsmain command parsing without getopt, it is really very simple so getopt can be avoided. ---------------------------------------------------------------------- >Comment By: Vlad Seryakov (seryakov) Date: 2005-04-04 15:29 Message: Logged In: YES user_id=184124 make test works now, getopt removed ---------------------------------------------------------------------- Comment By: Vlad Seryakov (seryakov) Date: 2005-04-04 02:19 Message: Logged In: YES user_id=184124 I had some doubts about this but according to the usage help, there is no any uprocessed arguments left, i do not know why optind has been used at all, it was always equalt to the last argument. ---------------------------------------------------------------------- Comment By: Stephen Deasey (sdeasey) Date: 2005-04-04 00:46 Message: Logged In: YES user_id=87254 'make test' no longer works. Looks like the following is too strict: if (argv[i][0] != '-') { UsageError("invalid option: %s", argv[i]); exit(1); } Also, this isn't equivalent: ! NsConfigEval(config, argc, argv, optind); --- 537,541 ---- ! NsConfigEval(config, argc, argv, argc); The config script should end up with unprocessed args in the interp's $::argv, right? ---------------------------------------------------------------------- Comment By: Vlad Seryakov (seryakov) Date: 2005-04-03 15:29 Message: Logged In: YES user_id=184124 Yes, i run my server with all parameters, no difference. ---------------------------------------------------------------------- Comment By: Zoran Vasiljevic (vasiljevic) Date: 2005-04-03 11:42 Message: Logged In: YES user_id=95086 If you have verified the correct operation, you can submit this. The "poll" implementation is still open, right? I will be unavailable for couple of days... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=719009&aid=1175561&group_id=130646 |