Subject: Re: Switching from old-style getopt to new-style one
To: Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
From: Hubert Feyrer <hubert@feyrer.de>
List: tech-userlevel
Date: 11/02/2000 04:07:31
On Thu, 2 Nov 2000, Thomas Klausner wrote:
> One of the major improvements this would bring is that in the
> old-style getopt, with an option string of "a:b", a call like
> program -a file file2 -b file3
> would not handle '-b' as an option; the program would get
> file2 -b file3
> as options it has to parse itself. The new-style getopt by default
> handles this command line like
> program -a file -b file2 file3
> and modifies the argv pointers so that the program gets
> file2 file3
> as remaining arguments.
Yuck . What do POSIX/SUS say about that?
- Hubert
--
Hubert Feyrer <hubert@feyrer.de>