* cygcheck.cc (main): Allow a '-l' without an additional argument.

This commit is contained in:
Christopher Faylor 2004-11-11 01:52:33 +00:00
parent 5ccf388ed8
commit 28fbe53af8
2 changed files with 8 additions and 10 deletions

View File

@ -1,3 +1,7 @@
2004-11-10 Christopher Faylor <cgf@timesys.com>
* cygcheck.cc (main): Allow a '-l' without an additional argument.
2004-11-11 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl> 2004-11-11 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
* cygcheck.cc (keyeprint): New optional parameters: show_error and * cygcheck.cc (keyeprint): New optional parameters: show_error and

View File

@ -1457,7 +1457,7 @@ main (int argc, char **argv)
argc -= optind; argc -= optind;
argv += optind; argv += optind;
if (argc == 0 && !sysinfo && !keycheck && !check_setup) if (argc == 0 && !sysinfo && !keycheck && !check_setup && !list_package)
if (givehelp) if (givehelp)
usage (stdout, 0); usage (stdout, 0);
else else
@ -1492,17 +1492,11 @@ main (int argc, char **argv)
} }
if (check_setup) if (check_setup)
{
dump_setup (verbose, argv, !dump_only); dump_setup (verbose, argv, !dump_only);
}
else if (find_package) else if (find_package)
{
package_find (verbose, argv); package_find (verbose, argv);
}
else if (list_package) else if (list_package)
{
package_list (verbose, argv); package_list (verbose, argv);
}
else else
for (i = 0; i < argc; i++) for (i = 0; i < argc; i++)
{ {