Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <20050301104759.22913.qmail@web51108.mail.yahoo.com>
Date: Tue, 1 Mar 2005 10:47:58 +0000 (GMT)
From: Alexander Joerg Herrmann <alexander_herrmann@yahoo.com.au>
Subject: Re: getopt required_argument (Was Re: regtool - 1.8 - Core dump)
To: cygwin@cygwin.com
In-Reply-To: <Pine.GSO.4.61.0502271142170.14885@slinky.cs.nyu.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes

> Well, it's just a matter of adding a check for
> optarg being NULL and
> printing an appropriate message (e.g.,
>           if (optarg == NULL) {
>             fprintf(stderr, "Missing key-value
> separator\n");
>             usage();
>           }
> ).
Yup looks easy but I may better patch the DLL to use
some kind of fstab file which would it make complete
portable as now I'am sitting in front of a computer
which let's me run bash but not cmd - ahhhh. 

> However, the question is what should getopt's
> behavior be if something
> specified as a "required_argument" is missing? 
It sould do the same thing as the long parameter
arguments imo.
Alex

=====
___________________________________________________________
http://tahi4x4.felixfrisch.de                Take a look :)
webmaster@FelixFrisch.de

________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

