Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Subject: Re: Command-line options for setup.exe From: Robert Collins To: Max Bowsher Cc: cygwin AT cygwin DOT com In-Reply-To: <002801c2dd1f$bfee5ef0$78d96f83@pomello> References: <002801c2dd1f$bfee5ef0$78d96f83 AT pomello> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-gHUnZimzbjccA6Xw4Nvt" Organization: Message-Id: <1046213933.495.24.camel@localhost> Mime-Version: 1.0 Date: 26 Feb 2003 09:58:53 +1100 --=-gHUnZimzbjccA6Xw4Nvt Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2003-02-26 at 09:46, Max Bowsher wrote: > Igor Pechtchanski wrote: > > On Tue, 25 Feb 2003, Max Bowsher wrote: > >> No, building it as a MinGW app is fine. > >> But it must be run from a CYGWIN=3Dtty shell. > >=20 > > Oh, ok. I don't use "tty" myself, so I needed it built as a Cygwin > > app. Could it, perhaps, pop up a dialog box instead if stdout is not > > available? Is there any way of detecting whether output to stdout > > will be seen?=20 >=20 > Detection is the tricky part. I can't figure out how. I wouldn't bother with detection. setup.exe is a gui, it's fine for it to show help as a gui. What is needed is this: The current libgetopt call to show the parameter help should become a convenience call over a lower interface. That interface should: * Provide a const interator to all the options in the optionset. That will let setup iterate over the options, extracting the help text and placing into a GUI text area (or a combobox etc etc). This is also on my TODO, and why I haven't applied your trivial 'add help' option to setup - because it will need to be changed no matter what. Rob --=20 GPG key available at: . --=-gHUnZimzbjccA6Xw4Nvt Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQA+W/UsI5+kQ8LJcoIRAnRbAJ9G6R4HlIOmFed5G5z0YNTWu+h7eACeOHJq +Xe9ZMoyJiIYArjEoeVnSxQ= =nmrE -----END PGP SIGNATURE----- --=-gHUnZimzbjccA6Xw4Nvt--