Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!usenet.ukfsn.org!not-for-mail From: Martin Gregorie Newsgroups: comp.lang.java.programmer Subject: Re: Interplatform (interprocess, interlanguage) communication Date: Sun, 12 Feb 2012 22:46:45 +0000 (UTC) Organization: UK Free Software Network Lines: 25 Message-ID: References: <4f332c6d$0$288$14726298@news.sunsite.dk> <4f345b64$0$291$14726298@news.sunsite.dk> <4217698.319.1328892670179.JavaMail.geo-discussion-forums@pbcwg4> <4f36c705$0$294$14726298@news.sunsite.dk> <4f3734f8$0$287$14726298@news.sunsite.dk> <4f37e5c3$0$287$14726298@news.sunsite.dk> NNTP-Posting-Host: 84.45.235.129 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: localhost.localdomain 1329086805 13730 84.45.235.129 (12 Feb 2012 22:46:45 GMT) X-Complaints-To: usenet@localhost.localdomain NNTP-Posting-Date: Sun, 12 Feb 2012 22:46:45 +0000 (UTC) User-Agent: Pan/0.135 (Tomorrow I'll Wake Up and Scald Myself with Tea; GIT 30dc37b master) Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:12007 On Sun, 12 Feb 2012 11:16:03 -0500, Arne Vajhøj wrote: > > Doesn't getopt exist in some GNU lib that you can get for all platforms? > Pass. I know it was missing from Borland C on DOS and Windows and wasn't published for OS-9. I ended up extending a PD version that was originally published in the '68 MicroJournal for OS-9 and porting it to the other two platforms. I had a good (to me) reason for doing that. At the time I was more familiar with OS-9 than Windows or Unix (Linux didn't exist at the time) and I had got used to the OS-9 command line parser's ability to handle a mix of options and arguments in any order rather than the straitjacket of Unix's rigid options before arguments rule. My extension basically just added the -x=value notation (also used by OS-9) to the standard Unix - xvalue and -x value notation. I've since rewritten it for Java, adding long option names (--xxxx and --xxxx=val) - something I've not gotten round to adding to the C version. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |