This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Setup patch: List command line options on stdout
- From: Dave <d_inabox at yahoo dot com>
- To: cygwin-apps at cygwin dot com
- Date: Tue, 16 Nov 2004 11:27:29 -0800 (PST)
- Subject: Setup patch: List command line options on stdout
Here's a simple and useful patch for setup. Might reduce queries about
unattended installs, and save people having to resort to source.
Patch is against CVS (as of yesterday).
Modify the leader text as you see fit :)
Dave Kilroy.
__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com
--- main.cc~ 2004-10-25 19:34:32.000000000 +0100
+++ main.cc 2004-11-16 19:21:14.000000000 +0000
@@ -471,7 +471,11 @@
if (HelpOption)
{
- GetOption::GetInstance().ParameterUsage(log(LOG_PLAIN)<<"\nCommand Line Options:\n");
+ log(LOG_PLAIN)<<"\nOutput command line options\n";
+ std::cout << "setup [options]\n\n"
+ << "Cygwin setup installs and maintains cygwin packages\n\n"
+ << "Command Line options:\n";
+ GetOption::GetInstance().ParameterUsage(std::cout);
theLog->exit(0);
}