+Tue Aug 28 14:45:02 2001 Christopher Faylor <cgf@cygnus.com>
+
+ * mount.cc (main): Issue correct warning for 'not enough arguments'.
+
2001-08-14 Joerg Schaible <joerg.schaible@gmx.de>
* cygpath.cc (main): Support -w for Windows (System) directories and
default:
if (optind != (argc - 1))
{
- fprintf (stderr, "%s: too many arguments\n", progname);
+ if (optind >= argc)
+ fprintf (stderr, "%s: not enough arguments\n", progname);
+ else
+ fprintf (stderr, "%s: too many arguments\n", progname, optind, argc);
usage ();
}
if (force || !mount_already_exists (argv[optind + 1], flags))