delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/10/31/03:30:45

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Message-ID: <20011031083038.86183.qmail@web9906.mail.yahoo.com>
Date: Wed, 31 Oct 2001 08:30:38 +0000 (GMT)
From: =?iso-8859-1?q?Keith=20Starsmeare?= <keith_starsmeare AT yahoo DOT co DOT uk>
Subject: RE: setup.exe command line options
To: Robert Collins <robert DOT collins AT itdomain DOT com DOT au>,
cygwin-developers AT cygwin DOT com
In-Reply-To: <EA18B9FA0FE4194AA2B4CDB91F73C0EF08F240@itdomain002.itdomain.net.au>
MIME-Version: 1.0

 --- Robert Collins <robert DOT collins AT itdomain DOT com DOT au> 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[]?

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...


____________________________________________________________
Nokia Game is on again. 
Go to http://uk.yahoo.com/nokiagame/ and join the new
all media adventure before November 3rd.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019