Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Subject: RE: setup.exe command line options From: Robert Collins To: Keith Starsmeare Cc: cygwin-developers AT cygwin DOT com In-Reply-To: <20011031083038.86183.qmail@web9906.mail.yahoo.com> References: <20011031083038 DOT 86183 DOT qmail AT web9906 DOT mail DOT yahoo DOT com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.15 (Preview Release) Date: 31 Oct 2001 20:40:44 +1100 Message-Id: <1004521251.1121.2.camel@lifelesswks> Mime-Version: 1.0 X-OriginalArrivalTime: 31 Oct 2001 09:45:04.0262 (UTC) FILETIME=[B78D4A60:01C161F0] On Wed, 2001-10-31 at 19:30, Keith Starsmeare wrote: > --- Robert Collins wrote: > > -----Original > Message----- > > > From: Keith Starsmeare [mailto:keith_starsmeare AT yahoo DOT co DOT uk] > > > > > > I thought it best to mirror the options in the dialog boxes, > > > so I came up > > > with these options: > > > > Can I suggest getopt is used? (Just copy the mingw_getopt.o rule from > > utils/Makefile.in). > > The arguments are passed in as one string, can I use getopt to process a > string; I imagined I that getopt worked with an array of strings i.e. char > *argv[]? Fixed. I realised this just after mailing my comment :}. Update your CVS repository. > I enjoyed writing my own function to make parsing easier (I've never used > getopt, although I had heard of it, and there's no man page) but if getopt is > the way to go then I'll use it. > > Keith > > BTW Is there a cinoptions setting for vim to match the indentation in the setup > sources - I can't get the braces and then the block of code to indent... Possibly, I ususally just hit spc spc :].