bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] Having some problems with getopt_long


From: Giuseppe Scrivano
Subject: Re: [Bug-wget] Having some problems with getopt_long
Date: Wed, 04 Aug 2010 18:45:53 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

vivi <address@hidden> writes:

> Great, it works now! However, one problem I found is that if a
> unrecognized option is given, an error is posted twice, most likely due
> to getopt_long running twice.

To inhibit getopt to print errors you should reset opterr.

I am still unsure about using it twice; what we can do is store
temporarily what getopt returns and use it later instead of repeating
the whole procedure.  Anyway, this can be done later.

Giuseppe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]